Merge branch 'master' into loops
Conflicts: core/lib/Thelia/Core/Template/Loop/Category.php core/lib/Thelia/Core/Template/Loop/FeatureValue.php core/lib/Thelia/Core/Template/Loop/Folder.php core/lib/Thelia/Core/Template/Loop/Product.php core/lib/Thelia/Core/Template/Smarty/Plugins/TheliaLoop.php install/faker.php
This commit is contained in:
7
documentation/api/files/Log/TlogDestinationConfig.php.txt
Normal file → Executable file
7
documentation/api/files/Log/TlogDestinationConfig.php.txt
Normal file → Executable file
@@ -24,7 +24,6 @@
|
||||
namespace Thelia\Log;
|
||||
|
||||
use Thelia\Model\Config;
|
||||
use Thelia\Model\ConfigDesc;
|
||||
use Thelia\Model\ConfigQuery;
|
||||
|
||||
class TlogDestinationConfig
|
||||
@@ -51,11 +50,9 @@ class TlogDestinationConfig
|
||||
$this->load();
|
||||
}
|
||||
|
||||
|
||||
public function load()
|
||||
{
|
||||
if (null === $config = ConfigQuery::create()->findOneByName($this->name))
|
||||
{
|
||||
if (null === $config = ConfigQuery::create()->findOneByName($this->name)) {
|
||||
$config = new Config();
|
||||
$config->setName($this->name);
|
||||
$config->setValue($this->default);
|
||||
@@ -63,7 +60,7 @@ class TlogDestinationConfig
|
||||
$config->setSecured(1);
|
||||
$config->save();
|
||||
}
|
||||
|
||||
|
||||
$this->value = $config->getValue();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user