<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
*/
$versionName = self::$_numberMap[$versionParts[0]] . self::$_numberMap[$versionParts[1]];
if (!array_key_exists($versionName, $incrementalPhpObject)) {
- eval("\$incrementalPhpObject['$versionName'] = new CRM_Upgrade_Incremental_php_{$versionName};");
+ $className = "CRM_Upgrade_Incremental_php_{$versionName}";
+ $incrementalPhpObject[$versionName] = new $className();
}
return $incrementalPhpObject[$versionName];
}
// callback
array('CRM_Upgrade_Form', 'doIncrementalUpgradeFinish'),
// arguments
- array($rev),
+ array($rev, $currentVer, $latestVer, $postUpgradeMessageFile),
"Finish Upgrade DB to $rev"
);
$queue->createItem($task);
* @param $latestVer string, the target (final) revision
* @param $postUpgradeMessageFile string, path of a modifiable file which lists the post-upgrade messages
*/
- static function doIncrementalUpgradeFinish(CRM_Queue_TaskContext $ctx, $rev) {
+ static function doIncrementalUpgradeFinish(CRM_Queue_TaskContext $ctx, $rev, $currentVer, $latestVer, $postUpgradeMessageFile) {
$upgrade = new CRM_Upgrade_Form();
$upgrade->setVersion($rev);
CRM_Utils_System::flushCache();