mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
Adapt to WoltLab/WCF@e94d75561e
This commit is contained in:
parent
3483422f1a
commit
84303306a8
@ -88,10 +88,10 @@ public function save() {
|
||||
parent::save();
|
||||
|
||||
// save room
|
||||
$this->objectAction = new \chat\data\room\RoomAction(array(), 'create', array('data' => array(
|
||||
$this->objectAction = new \chat\data\room\RoomAction(array(), 'create', array('data' => array_merge($this->additionalFields, array(
|
||||
'title' => $this->title,
|
||||
'topic' => $this->topic
|
||||
)));
|
||||
))));
|
||||
$this->objectAction->executeAction();
|
||||
$returnValues = $this->objectAction->getReturnValues();
|
||||
$roomEditor = new \chat\data\room\RoomEditor($returnValues['returnValues']);
|
||||
|
@ -87,10 +87,10 @@ public function save() {
|
||||
\chat\system\permission\PermissionHandler::clearCache();
|
||||
|
||||
// update room
|
||||
$this->objectAction = new \chat\data\room\RoomAction(array($this->roomID), 'update', array('data' => array(
|
||||
$this->objectAction = new \chat\data\room\RoomAction(array($this->roomID), 'update', array('data' => array_merge($this->additionalFields, array(
|
||||
'title' => $this->title,
|
||||
'topic' => $this->topic
|
||||
)));
|
||||
))));
|
||||
$this->objectAction->executeAction();
|
||||
|
||||
$this->saved();
|
||||
|
@ -17,7 +17,7 @@
|
||||
</authorinformation>
|
||||
|
||||
<requiredpackages>
|
||||
<requiredpackage minversion="2.0.0 Beta 11">com.woltlab.wcf</requiredpackage>
|
||||
<requiredpackage minversion="2.0.0 RC 3">com.woltlab.wcf</requiredpackage>
|
||||
<requiredpackage file="requirements/be.bastelstu.max.wcf.jCounter.tar" minversion="1.0.0 Beta 4">be.bastelstu.max.wcf.jCounter</requiredpackage>
|
||||
<requiredpackage file="requirements/be.bastelstu.wcf.nodePush.tar">be.bastelstu.wcf.nodePush</requiredpackage>
|
||||
</requiredpackages>
|
||||
|
Loading…
Reference in New Issue
Block a user