mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2025-01-08 00:10: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();
|
parent::save();
|
||||||
|
|
||||||
// save room
|
// 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,
|
'title' => $this->title,
|
||||||
'topic' => $this->topic
|
'topic' => $this->topic
|
||||||
)));
|
))));
|
||||||
$this->objectAction->executeAction();
|
$this->objectAction->executeAction();
|
||||||
$returnValues = $this->objectAction->getReturnValues();
|
$returnValues = $this->objectAction->getReturnValues();
|
||||||
$roomEditor = new \chat\data\room\RoomEditor($returnValues['returnValues']);
|
$roomEditor = new \chat\data\room\RoomEditor($returnValues['returnValues']);
|
||||||
|
@ -87,10 +87,10 @@ public function save() {
|
|||||||
\chat\system\permission\PermissionHandler::clearCache();
|
\chat\system\permission\PermissionHandler::clearCache();
|
||||||
|
|
||||||
// update room
|
// 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,
|
'title' => $this->title,
|
||||||
'topic' => $this->topic
|
'topic' => $this->topic
|
||||||
)));
|
))));
|
||||||
$this->objectAction->executeAction();
|
$this->objectAction->executeAction();
|
||||||
|
|
||||||
$this->saved();
|
$this->saved();
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
</authorinformation>
|
</authorinformation>
|
||||||
|
|
||||||
<requiredpackages>
|
<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.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>
|
<requiredpackage file="requirements/be.bastelstu.wcf.nodePush.tar">be.bastelstu.wcf.nodePush</requiredpackage>
|
||||||
</requiredpackages>
|
</requiredpackages>
|
||||||
|
Loading…
Reference in New Issue
Block a user