Updating for main processmaker script

This commit is contained in:
Erik Amaru Ortiz
2014-03-17 11:54:09 -04:00
parent c14b204bf7
commit 4a12be66c8
8 changed files with 90 additions and 63 deletions

View File

@@ -232,7 +232,7 @@ class WebApplication
);
}
public function loadEnvironment($workspace)
public function loadEnvironment($workspace = "")
{
$lang = "en";
@@ -326,6 +326,10 @@ class WebApplication
define("PATH_TEMPORAL", PATH_C . "dynEditor/");
define("PATH_DB", PATH_DATA . "sites" . PATH_SEP);
if (empty($workspace)) {
return true;
}
define("SYS_SYS", $workspace);
if (! file_exists( PATH_DB . SYS_SYS . "/db.php" )) {
@@ -367,5 +371,7 @@ class WebApplication
//$memcache = PMmemcached::getSingleton( SYS_SYS );
\Propel::init(PATH_CONFIG . "databases.php");
return true;
}
}