From f6ba0bfc7f3106655b702e26fced5bdc3e77d014 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sat, 11 Feb 2012 17:42:56 +0100 Subject: [PATCH] Use $this->objectAction to match WoltLab/WCF@635dd8c454a13eea8dc9b943ec7a156628ab42c9 --- file/lib/acp/form/ChatRoomAddForm.class.php | 6 +++--- file/lib/acp/form/ChatRoomEditForm.class.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/file/lib/acp/form/ChatRoomAddForm.class.php b/file/lib/acp/form/ChatRoomAddForm.class.php index 422dbcb..81bdd98 100644 --- a/file/lib/acp/form/ChatRoomAddForm.class.php +++ b/file/lib/acp/form/ChatRoomAddForm.class.php @@ -80,12 +80,12 @@ public function save() { parent::save(); // save room - $chatRoomAction = new \wcf\data\chat\room\ChatRoomAction(array(), 'create', array('data' => array( + $this->objectAction = new \wcf\data\chat\room\ChatRoomAction(array(), 'create', array('data' => array( 'title' => $this->title, 'topic' => $this->topic ))); - $chatRoomAction->executeAction(); - $returnValues = $chatRoomAction->getReturnValues(); + $this->objectAction->executeAction(); + $returnValues = $this->objectAction->getReturnValues(); $chatRoomEditor = new \wcf\data\chat\room\ChatRoomEditor($returnValues['returnValues']); $roomID = $returnValues['returnValues']->roomID; diff --git a/file/lib/acp/form/ChatRoomEditForm.class.php b/file/lib/acp/form/ChatRoomEditForm.class.php index 71efd30..e373fc5 100644 --- a/file/lib/acp/form/ChatRoomEditForm.class.php +++ b/file/lib/acp/form/ChatRoomEditForm.class.php @@ -82,11 +82,11 @@ public function save() { // update room - $chatRoomAction = new \wcf\data\chat\room\ChatRoomAction(array($this->roomID), 'update', array('data' => array( + $this->objectAction = new \wcf\data\chat\room\ChatRoomAction(array($this->roomID), 'update', array('data' => array( 'title' => $this->title, 'topic' => $this->topic ))); - $chatRoomAction->executeAction(); + $this->objectAction->executeAction(); $this->saved();