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();