1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2025-01-09 00:20:08 +00:00

Properly refer to exceptions

This commit is contained in:
Tim Düsterhus 2013-01-18 15:45:21 +01:00
parent e72005d8f8
commit c4dcb88bea

View File

@ -86,11 +86,11 @@ public function validateUpdatePosition() {
WCF::getSession()->checkPermissions($this->permissionsUpdate); WCF::getSession()->checkPermissions($this->permissionsUpdate);
} }
else { else {
throw new PermissionDeniedException(); throw new \wcf\system\exception\PermissionDeniedException();
} }
if (!isset($this->parameters['data']['structure'])) { if (!isset($this->parameters['data']['structure'])) {
throw new UserInputException('structure'); throw new \wcf\system\exception\UserInputException('structure');
} }
if (!isset($this->parameters['data']['offset'])) $this->parameters['data']['offset'] = 0; if (!isset($this->parameters['data']['offset'])) $this->parameters['data']['offset'] = 0;