Skip to content

Commit

Permalink
Dev: corequestiontemplatedir => corequestionthemedir
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Nov 21, 2017
1 parent 177de9a commit b286d05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions application/config/config-defaults.php
Expand Up @@ -639,8 +639,8 @@
$config['uploaddir'] = $config['rootdir'].DIRECTORY_SEPARATOR."upload";
$config['standardtemplaterootdir'] = $config['rootdir'].DIRECTORY_SEPARATOR."templates"; // The directory path of the standard templates
$config['publicstylepath'] = $config['rootdir'].DIRECTORY_SEPARATOR.$config['publicstyle'];
$config['corequestiontemplatedir'] = "question_templates";
$config['corequestionthemerootdir'] = $config['rootdir'].DIRECTORY_SEPARATOR.$config['corequestiontemplatedir']; // The directory containing the core's question templates.
$config['corequestionthemedir'] = "question_templates";
$config['corequestionthemerootdir'] = $config['rootdir'].DIRECTORY_SEPARATOR.$config['corequestionthemedir']; // The directory containing the core's question templates.
$config['styledir'] = $config['rootdir'].DIRECTORY_SEPARATOR.$config['assets'].DIRECTORY_SEPARATOR.'styles-admin';
$config['questiontypedir'] = $config['rootdir'].DIRECTORY_SEPARATOR.'application'.DIRECTORY_SEPARATOR.'extensions'.DIRECTORY_SEPARATOR.'questionTypes';
$config['userthemerootdir'] = $config['uploaddir'].DIRECTORY_SEPARATOR."templates"; // The directory path of the user templates
Expand Down
2 changes: 1 addition & 1 deletion application/models/QuestionTemplate.php
Expand Up @@ -348,7 +348,7 @@ public function getTemplateUrl()
$sCoreQTemplateRootDir = Yii::app()->getConfig("corequestionthemerootdir");
$sUserQTemplateRootDir = Yii::app()->getConfig("userquestionthemerootdir");

$sCoreQTemplateDir = Yii::app()->getConfig("corequestiontemplatedir");
$sCoreQTemplateDir = Yii::app()->getConfig("corequestionthemedir");

// Core templates come first
if(is_dir("$sCoreQTemplateRootDir/$sTemplateFolderName/")) {
Expand Down

0 comments on commit b286d05

Please sign in to comment.