From: Alexander Ebert Date: Fri, 10 Feb 2012 16:41:31 +0000 (+0100) Subject: Added AbstractForm::$objectAction X-Git-Tag: 2.0.0_Beta_1~616^2~41 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=43c8615ca006536a513c8d58122c1a60a1b67cb4;p=GitHub%2FWoltLab%2FWCF.git Added AbstractForm::$objectAction --- 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