Skip to content

Commit

Permalink
Dev: Include template name in package string
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Oct 11, 2017
1 parent 8dc6d4e commit 713af0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/UploaderController.php
Expand Up @@ -316,7 +316,7 @@ function run($actionID)
App()->clientScript->registerScript('sNeededScriptVar',$sNeededScriptVar,CClientScript::POS_HEAD);
App()->clientScript->registerScript('sLangScriptVar',$sLangScriptVar,CClientScript::POS_HEAD);
$oTemplate = Template::model()->getInstance('',$surveyid);
Yii::app()->clientScript->registerPackage( 'survey-template' );
Yii::app()->clientScript->registerPackage('survey-template-'.$oTemplate->sTemplateName);

App()->getClientScript()->registerScriptFile(Yii::app()->getConfig("generalscripts").'ajaxupload.js');
App()->getClientScript()->registerScriptFile(Yii::app()->getConfig("generalscripts").'uploader.js');
Expand Down

0 comments on commit 713af0e

Please sign in to comment.