Skip to content

Commit

Permalink
Fixed issue: sutename, siteadminemail ans siteadminname are not used …
Browse files Browse the repository at this point in the history
…in template editor
  • Loading branch information
Shnoulle committed Oct 13, 2012
1 parent 5bf158e commit 333090e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions application/controllers/admin/templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -727,8 +727,6 @@ protected function _initcssfiles()
*/
protected function _initialise($templatename, $screenname, $editfile, $showsummary = true)
{
global $siteadminname, $siteadminemail;

$clang = $this->getController()->lang;
Yii::app()->loadHelper('surveytranslator');
Yii::app()->loadHelper('admin/template');
Expand Down Expand Up @@ -857,6 +855,11 @@ protected function _initialise($templatename, $screenname, $editfile, $showsumma
foreach ($cssfiles as $fl)
$normalfiles[] = $fl["name"];

// Some global data
$aData['sitename'] = Yii::app()->getConfig('sitename');
$siteadminname = Yii::app()->getConfig('siteadminname');
$siteadminemail = Yii::app()->getConfig('siteadminemail');

// Set this so common.php doesn't throw notices about undefined variables
$thissurvey['active'] = 'N';

Expand Down

0 comments on commit 333090e

Please sign in to comment.