diff --git a/application/controllers/admin/templates.php b/application/controllers/admin/templates.php index addf3e5d0eb..e0677bc72b7 100644 --- a/application/controllers/admin/templates.php +++ b/application/controllers/admin/templates.php @@ -30,7 +30,7 @@ public function runWithParams($params) parent::runWithParams($params); }else{ Yii::app()->setFlashMessage(gT("We are sorry but you don't have permissions to do this."),'error'); - $this->getController()->redirect(array("admin/templateoptions")); + $this->getController()->redirect(array("admin/themeoptions")); } } @@ -70,7 +70,7 @@ public function templatezip($templatename) } }else{ Yii::app()->setFlashMessage(gT("We are sorry but you don't have permissions to do this."),'error'); - $this->getController()->redirect(array("admin/templateoptions")); + $this->getController()->redirect(array("admin/themeoptions")); } } @@ -241,7 +241,7 @@ public function upload() $this->_renderWrappedTemplate('templates', $aViewUrls, $aData); }else{ Yii::app()->setFlashMessage(gT("We are sorry but you don't have permissions to do this."),'error'); - $this->getController()->redirect(array("admin/templateoptions")); + $this->getController()->redirect(array("admin/themeoptions")); } @@ -468,7 +468,7 @@ public function templaterename() Yii::app()->user->setFlash('error',sprintf(gT("Template '%s' could not be found."), $sOldName)); } - $this->getController()->redirect(array('admin/templateoptions')); + $this->getController()->redirect(array('admin/themeoptions')); } } }else{ @@ -571,7 +571,7 @@ public function delete($templatename) Yii::app()->setFlashMessage(gT("We are sorry but you don't have permissions to do this."),'error'); } // Redirect with default templatename, editfile and screenname - $this->getController()->redirect(array("admin/templateoptions")); + $this->getController()->redirect(array("admin/themeoptions")); } /** diff --git a/application/helpers/admin/template_helper.php b/application/helpers/admin/template_helper.php index 5cee685255a..4e1f7c7ca58 100644 --- a/application/helpers/admin/template_helper.php +++ b/application/helpers/admin/template_helper.php @@ -65,7 +65,7 @@ function mkdir_p($target){ } } -function templateoptions($optionarray, $selectedvalue) { +function themeoptions($optionarray, $selectedvalue) { $return=''; foreach ($optionarray as $arkey=>$arvalue) { $return .= "