This commit is contained in:
Roly Rudy Gutierrez Pinto
2017-10-10 12:41:15 -04:00
parent 8ac8e50691
commit c3f74fca4b
3 changed files with 3 additions and 7 deletions

View File

@@ -102,7 +102,6 @@ define('MAX_IMAGE_ROW_LEN',16);
define('MAX_TRANSPARENT_IMAGE_ROW_LEN',16); define('MAX_TRANSPARENT_IMAGE_ROW_LEN',16);
define('CACHE_DIR', HTML2PS_DIR.'cache/'); define('CACHE_DIR', HTML2PS_DIR.'cache/');
//define('OUTPUT_FILE_DIRECTORY', HTML2PS_DIR.'out/'.(!empty(config("system.workspace")) ? config("system.workspace") . '/' : ''));
define('OUTPUT_FILE_DIRECTORY', PATH_OUTPUT_FILE_DIRECTORY); define('OUTPUT_FILE_DIRECTORY', PATH_OUTPUT_FILE_DIRECTORY);
define('FPDF_PATH', HTML2PS_DIR.'fpdf/'); define('FPDF_PATH', HTML2PS_DIR.'fpdf/');

View File

@@ -239,11 +239,10 @@ class PmBootstrap extends Bootstrap
public function initPropel($sys = '') public function initPropel($sys = '')
{ {
if (empty($sys)) { if (empty($sys)) {
if (empty(config("system.workspace"))) {
throw new Exception("Error: Undefined syemtem env. constant 'SYS_SYS'");
}
$sys = config("system.workspace"); $sys = config("system.workspace");
if (empty($sys)) {
throw new Exception("Error: Undefined system environment (workspace).");
}
} }
// setup propel definitions and logging // setup propel definitions and logging

View File

@@ -33,8 +33,6 @@ $oProcess = new Process();
$oProcess->dir = $dir; $oProcess->dir = $dir;
$oProcess->sort = $sort; $oProcess->sort = $sort;
//$memcache = & PMmemcached::getSingleton( config("system.workspace") );
$memkey = 'no memcache'; $memkey = 'no memcache';
$memcacheUsed = 'not used'; $memcacheUsed = 'not used';
$totalCount = 0; $totalCount = 0;