Skip to content

Commit

Permalink
Fixed issue #11990: Duplicated endpage.pstpl content in template editor
Browse files Browse the repository at this point in the history
Dev: only for welcome page
  • Loading branch information
Shnoulle committed Dec 8, 2016
1 parent 3529ccf commit 8578341
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions application/controllers/admin/templates.php
Expand Up @@ -952,6 +952,7 @@ protected function _initialise($templatename, $screenname, $editfile, $showsumma
'navigator.pstpl',
'endpage.pstpl'
);
/* not used : data updated between load */

This comment has been minimized.

Copy link
@Shnoulle

Shnoulle Dec 9, 2016

Author Collaborator

It's not 'not used' , it's 'used only for the list' . I correct it

$Question = array('startpage.pstpl',
'survey.pstpl',
'startgroup.pstpl',
Expand All @@ -967,27 +968,33 @@ protected function _initialise($templatename, $screenname, $editfile, $showsumma
'completed.pstpl',
'endpage.pstpl'
);
/* not used */
$Clearall = array('startpage.pstpl',
'clearall.pstpl',
'endpage.pstpl'
);
/* not used */
$Register = array('startpage.pstpl',
'survey.pstpl',
'register.pstpl',
'endpage.pstpl'
);
/* not used */
$Save = array('startpage.pstpl',
'save.pstpl',
'endpage.pstpl'
);
/* not used */
$Load = array('startpage.pstpl',
'load.pstpl',
'endpage.pstpl'
);
/* not used */
$printtemplate = array('startpage.pstpl',
'printanswers.pstpl',
'endpage.pstpl'
);
/* not used */
$printablesurveytemplate = array('print_survey.pstpl',
'print_group.pstpl',
'print_question.pstpl'
Expand Down Expand Up @@ -1214,11 +1221,9 @@ protected function _initialise($templatename, $screenname, $editfile, $showsumma
'MOVENEXTBUTTON' => '<button type="submit" id="movenextbtn" value="movenext" name="movenext" accesskey="n" class="submit button btn btn-primary btn-lg">'.gT('Next').'</button>'
);
$files=$Welcome ;
foreach ($Welcome as $qs) {
foreach ($files as $qs) {
$myoutput = array_merge($myoutput, doreplacement($oEditedTemplate->viewPath . "/$qs", $aData, $oEditedTemplate));
}

$myoutput = array_merge($myoutput, doreplacement($oEditedTemplate->viewPath . "/endpage.pstpl", $aData, $oEditedTemplate));
break;

case 'register':
Expand Down

0 comments on commit 8578341

Please sign in to comment.