Skip to content

Commit

Permalink
Fixed issue: Theme Editor Broken after #13357 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Mar 5, 2018
1 parent 0d75f9f commit 4c3c700
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions application/models/Template.php
Expand Up @@ -416,16 +416,17 @@ public static function getTemplatesFileFolder($sTemplateName = "")
public static function getTemplateList()
{


$aTemplateList = array();

$oTemplateList = TemplateConfiguration::model()->search();
$oTemplateList->setPagination(false);

foreach ($oTemplateList->getData() as $oTemplate) {
$aTemplateList[$oTemplate->template_name] = $oTemplate->path;
$aTemplateList[$oTemplate->template_name] = (isStandardTemplate($oTemplate->template_name)) ? Yii::app()->getConfig("standardthemerootdir") . DIRECTORY_SEPARATOR . $oTemplate->template->folder : Yii::app()->getConfig("userthemerootdir") . DIRECTORY_SEPARATOR . $oTemplate->template->folder;
}

return $aTemplateList;

}

/**
Expand Down

0 comments on commit 4c3c700

Please sign in to comment.