Removed direct references to $_REQUEST and $_POST

This commit is contained in:
Deon George
2016-08-03 16:20:25 +10:00
parent 5f84d2c14f
commit 7adcd1d983
24 changed files with 85 additions and 85 deletions

View File

@@ -20,11 +20,11 @@ class Controller_Admin_Email extends Controller_Email {
public function action_ajaxtemplatetranslate() {
$eto = ORM::factory('Email_Template',$this->request->param('id'));
if (! $eto->loaded() OR ! isset($_REQUEST['key'])) {
if (! $eto->loaded() OR ! $this->request->query('key')) {
$output = _('Unable to find translate data');
} else {
$eto = $eto->translate->where('language_id','=',$_REQUEST['key'])->find();
$eto = $eto->translate->where('language_id','=',$this->request->query('key'))->find();
$output = View::factory('email/admin/ajaxtemplatetranslate')
->set('o',$eto);
@@ -83,7 +83,7 @@ class Controller_Admin_Email extends Controller_Email {
private function add_edit_template($id=NULL,$output='') {
$eto = ORM::factory('Email_Template',$id);
if ($_POST) {
if ($this->request->post()) {
// @todo To update the setup ID
$eto->email_setup_id = '1';