mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
Use $this->objectAction to match WoltLab/WCF@635dd8c454
This commit is contained in:
parent
42f49b3e3e
commit
f6ba0bfc7f
@ -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;
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user