PM-3329 "0018097: El comando workspace-upgrade presenta errores..." SOLVED
Issue:
0018097: El comando workspace-upgrade presenta errores cuando se realiza un upgrade con PHP 5.4
Cause:
Constantes no definidas
Solution:
Se definen las constantes
This commit is contained in:
@@ -240,6 +240,14 @@ function run_workspace_upgrade($args, $opts) {
|
||||
$lang = array_key_exists("lang", $opts) ? $opts['lang'] : 'en';
|
||||
foreach ($workspaces as $workspace) {
|
||||
try {
|
||||
if (!defined("SYS_SYS")) {
|
||||
define("SYS_SYS", $workspace->name);
|
||||
}
|
||||
|
||||
if (!defined("PATH_DATA_SITE")) {
|
||||
define("PATH_DATA_SITE", PATH_DATA . "sites" . PATH_SEP . SYS_SYS . PATH_SEP);
|
||||
}
|
||||
|
||||
$workspace->upgrade($first, false, $workspace->name, $lang);
|
||||
$first = false;
|
||||
} catch (Exception $e) {
|
||||
|
||||
Reference in New Issue
Block a user