mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2025-01-22 02:00:40 +00:00
Use $this->objectAction to match WoltLab/WCF@635dd8c454
This commit is contained in:
parent
42f49b3e3e
commit
f6ba0bfc7f
@ -80,12 +80,12 @@ class ChatRoomAddForm extends ACPForm {
|
||||
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;
|
||||
|
||||
|
@ -82,11 +82,11 @@ class ChatRoomEditForm extends ChatRoomAddForm {
|
||||
|
||||
|
||||
// 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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user