Skip to content

Commit

Permalink
Dev: fixed problems with updating the default template
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Nov 28, 2017
1 parent 549dfb7 commit 0c41c8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions application/helpers/update/updatedb_helper.php
Expand Up @@ -803,6 +803,8 @@ function upgrade331($oDB)
'template_name' => 'fruity',
), "template_name='monochrome'");

$oDB->createCommand()->update('{{settings_global}}', array('stg_value'=>'fruity'), "stg_name='defaulttheme'");

}

/**
Expand Down
4 changes: 2 additions & 2 deletions application/models/Template.php
Expand Up @@ -159,8 +159,8 @@ public static function templateNameFilter($sTemplateName)
return self::templateNameFilter($sDefaultTemplate);
}

/* Last solution : default */
return Yii::app()->getConfig('defaulttheme');
/* Last solution : hard encode the name of the default template here */
return 'fruity';
}


Expand Down

0 comments on commit 0c41c8c

Please sign in to comment.