From 43c8615ca006536a513c8d58122c1a60a1b67cb4 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 10 Feb 2012 17:41:31 +0100 Subject: [PATCH] Added AbstractForm::$objectAction --- files/lib/acp/form/LanguageServerAddForm.class.php | 4 ++-- files/lib/acp/form/LanguageServerEditForm.class.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/files/lib/acp/form/LanguageServerAddForm.class.php b/files/lib/acp/form/LanguageServerAddForm.class.php index 6ed524522a..9f65dccf43 100644 --- a/files/lib/acp/form/LanguageServerAddForm.class.php +++ b/files/lib/acp/form/LanguageServerAddForm.class.php @@ -65,10 +65,10 @@ class LanguageServerAddForm extends ACPForm { parent::save(); // save server - $languageServerAction = new LanguageServerAction(array(), 'create', array('data' => array( + $this->objectAction = new LanguageServerAction(array(), 'create', array('data' => array( 'serverURL' => $this->server ))); - $languageServerAction->executeAction(); + $this->objectAction->executeAction(); $this->saved(); // reset values diff --git a/files/lib/acp/form/LanguageServerEditForm.class.php b/files/lib/acp/form/LanguageServerEditForm.class.php index c00819e9a2..d3463055fc 100644 --- a/files/lib/acp/form/LanguageServerEditForm.class.php +++ b/files/lib/acp/form/LanguageServerEditForm.class.php @@ -64,10 +64,10 @@ class LanguageServerEditForm extends LanguageServerAddForm { AbstractForm::save(); // save server - $languageServerAction = new LanguageServerAction(array($this->languageServerID), 'update', array('data' => array( + $this->objectAction = new LanguageServerAction(array($this->languageServerID), 'update', array('data' => array( 'serverURL' => $this->server ))); - $languageServerAction->executeAction(); + $this->objectAction->executeAction(); $this->saved(); // show success message -- 2.20.1