Fixed template scripting error
authorMarcel Werk <burntime@woltlab.com>
Tue, 29 Nov 2011 17:35:32 +0000 (18:35 +0100)
committerMarcel Werk <burntime@woltlab.com>
Tue, 29 Nov 2011 17:35:32 +0000 (18:35 +0100)
wcfsetup/install/files/lib/system/exception/PermissionDeniedException.class.php

index 45ebe49365b2a40c3da0c090475094b6060c2c3b..7e5115582d2d61397515f5b8d2a84e4092f71db0 100644 (file)
@@ -25,6 +25,10 @@ class PermissionDeniedException extends UserException {
         */
        public function show() {
                @header('HTTP/1.0 403 Forbidden');
+               
+               WCF::getTPL()->assign(array(
+                       'templateName' => 'permissionDenied'
+               ));
                WCF::getTPL()->display('permissionDenied');
        }
 }