HOR-2967 observations of 'pull Request'
This commit is contained in:
@@ -71,12 +71,7 @@ function flush_cache($args, $opts)
|
|||||||
//Update singleton file by workspace
|
//Update singleton file by workspace
|
||||||
foreach ($workspaces as $workspace) {
|
foreach ($workspaces as $workspace) {
|
||||||
eprint("Update singleton in workspace " . $workspace->name . " ... ");
|
eprint("Update singleton in workspace " . $workspace->name . " ... ");
|
||||||
if (!defined("SYS_SYS")) {
|
Bootstrap::setConstantsRelatedWs($workspace->name);
|
||||||
define("SYS_SYS", $workspace->name);
|
|
||||||
}
|
|
||||||
if (!defined("PATH_DATA_SITE")) {
|
|
||||||
define('PATH_DATA_SITE', PATH_DATA . 'sites/' . $workspace->name . '/');
|
|
||||||
}
|
|
||||||
$pathSingleton = PATH_DATA . "sites" . PATH_SEP . $workspace->name . PATH_SEP . "plugin.singleton";
|
$pathSingleton = PATH_DATA . "sites" . PATH_SEP . $workspace->name . PATH_SEP . "plugin.singleton";
|
||||||
$oPluginRegistry = PMPluginRegistry::loadSingleton($pathSingleton);
|
$oPluginRegistry = PMPluginRegistry::loadSingleton($pathSingleton);
|
||||||
$items = \PMPlugin::getlist($workspace->name);
|
$items = \PMPlugin::getlist($workspace->name);
|
||||||
|
|||||||
Reference in New Issue
Block a user