No namespace in Tlog call
This commit is contained in:
@@ -73,7 +73,7 @@ class Thelia extends Kernel
|
|||||||
$con = Propel::getConnection(\Thelia\Model\Map\ProductTableMap::DATABASE_NAME);
|
$con = Propel::getConnection(\Thelia\Model\Map\ProductTableMap::DATABASE_NAME);
|
||||||
$con->setAttribute(ConnectionWrapper::PROPEL_ATTR_CACHE_PREPARES, true);
|
$con->setAttribute(ConnectionWrapper::PROPEL_ATTR_CACHE_PREPARES, true);
|
||||||
if ($this->isDebug()) {
|
if ($this->isDebug()) {
|
||||||
$serviceContainer->setLogger('defaultLogger', \Thelia\Log\Tlog::getInstance());
|
$serviceContainer->setLogger('defaultLogger', Tlog::getInstance());
|
||||||
$con->useDebug(true);
|
$con->useDebug(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -236,7 +236,9 @@ class Thelia extends Kernel
|
|||||||
$this->addStandardModuleTemplatesToParserEnvironment($parser, $module);
|
$this->addStandardModuleTemplatesToParserEnvironment($parser, $module);
|
||||||
|
|
||||||
} catch (\InvalidArgumentException $e) {
|
} catch (\InvalidArgumentException $e) {
|
||||||
Tlog::getInstance()->addError(sprintf("Failed to load module %s: %s", $module->getCode(), $e->getMessage()), $e);
|
Tlog::getInstance()->addError(
|
||||||
|
sprintf("Failed to load module %s: %s", $module->getCode(), $e->getMessage()), $e
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -331,7 +333,7 @@ class Thelia extends Kernel
|
|||||||
public function getCacheDir()
|
public function getCacheDir()
|
||||||
{
|
{
|
||||||
if (defined('THELIA_ROOT')) {
|
if (defined('THELIA_ROOT')) {
|
||||||
return THELIA_CACHE_DIR.$this->environment;
|
return THELIA_CACHE_DIR.'cache/'.$this->environment;
|
||||||
} else {
|
} else {
|
||||||
return parent::getCacheDir();
|
return parent::getCacheDir();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user