Skip to content

Commit

Permalink
Fixed issue #11291: cron event never happen
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle committed May 28, 2016
1 parent abefd77 commit 56458c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/libraries/PluginManager/PluginManager.php
Expand Up @@ -319,7 +319,8 @@ public function loadPlugin($pluginName, $id = null)
public function loadPlugins()
{
// If DB version is less than 165 : plugins table don't exist. 175 update it (boolean to integer for active)
if(App()->getConfig('DBVersion')>= 165)
$dbVersion=\SettingGlobal::model()->find("stg_name=:name",array(':name'=>'DBVersion'));// Need table SettingGlobal, but settings from DB is set only in controller, not in App, see #11294
if($dbVersion && $dbVersion->stg_value = 165)
{
$pluginModel = Plugin::model();
$records = $pluginModel->findAllByAttributes(array('active'=>1));
Expand Down

0 comments on commit 56458c5

Please sign in to comment.