diff --git a/acptemplate/chatRoomAdd.tpl b/acptemplate/roomAdd.tpl similarity index 63% rename from acptemplate/chatRoomAdd.tpl rename to acptemplate/roomAdd.tpl index 52dc34e..4b052f3 100644 --- a/acptemplate/chatRoomAdd.tpl +++ b/acptemplate/roomAdd.tpl @@ -1,15 +1,9 @@ -{include file='header' pageTitle='wcf.acp.chat.room.'|concat:$action} +{include file='header' pageTitle='chat.acp.room.'|concat:$action}
-

{lang}wcf.acp.chat.room.list{/lang}

+

{lang}chat.acp.room.list{/lang}

@@ -19,30 +19,30 @@ {if $__wcf->session->getPermission('admin.chat.canAddRoom')} {/if} {hascontent} -
+
    {content} {foreach from=$objects item=chatRoom}
  1. {if $__wcf->session->getPermission('admin.chat.canEditRoom')} - {$chatRoom->title|language} + {$chatRoom->title|language} {else} {$chatRoom->title|language} {/if} - {if $__wcf->session->getPermission('admin.content.chat.canEditRoom')} - + {if $__wcf->session->getPermission('admin.chat.canEditRoom')} + {/if} - {if $__wcf->session->getPermission('admin.content.chat.canDeleteRoom')} - + {if $__wcf->session->getPermission('admin.chat.canDeleteRoom')} + {/if} diff --git a/file/lib/acp/form/RoomAddForm.class.php b/file/lib/acp/form/RoomAddForm.class.php index 9948670..bd6f561 100644 --- a/file/lib/acp/form/RoomAddForm.class.php +++ b/file/lib/acp/form/RoomAddForm.class.php @@ -1,5 +1,5 @@ objectAction = new \wcf\data\chat\room\ChatRoomAction(array(), 'create', array('data' => array( + $this->objectAction = new \chat\data\room\RoomAction(array(), 'create', array('data' => array( 'title' => $this->title, 'topic' => $this->topic ))); $this->objectAction->executeAction(); $returnValues = $this->objectAction->getReturnValues(); - $chatRoomEditor = new \wcf\data\chat\room\ChatRoomEditor($returnValues['returnValues']); + $roomEditor = new \chat\data\room\RoomEditor($returnValues['returnValues']); $roomID = $returnValues['returnValues']->roomID; if (!I18nHandler::getInstance()->isPlainValue('title')) { I18nHandler::getInstance()->save('title', 'chat.room.title'.$roomID, 'chat.room', \chat\util\ChatUtil::getPackageID()); // update title - $chatRoomEditor->update(array( - 'title' => 'wcf.chat.room.title'.$roomID + $roomEditor->update(array( + 'title' => 'chat.room.title'.$roomID )); } @@ -110,13 +110,13 @@ public function save() { I18nHandler::getInstance()->save('topic', 'chat.room.topic'.$roomID, 'chat.room', \chat\util\ChatUtil::getPackageID()); // update topic - $chatRoomEditor->update(array( + $roomEditor->update(array( 'topic' => 'chat.room.topic'.$roomID )); } \wcf\system\acl\ACLHandler::getInstance()->save($roomID, $this->objectTypeID); - \wcf\system\chat\permission\ChatPermissionHandler::clearCache(); + \chat\system\permission\permissionHandler::clearCache(); $this->saved(); diff --git a/file/lib/acp/form/RoomEditForm.class.php b/file/lib/acp/form/RoomEditForm.class.php index e38ad42..ba81659 100644 --- a/file/lib/acp/form/RoomEditForm.class.php +++ b/file/lib/acp/form/RoomEditForm.class.php @@ -1,5 +1,5 @@