Fixed small issue
authorMarcel Werk <burntime@woltlab.com>
Tue, 9 Apr 2013 11:47:46 +0000 (13:47 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 9 Apr 2013 11:47:46 +0000 (13:47 +0200)
wcfsetup/install/files/lib/system/WCF.class.php

index f075bcd885983dbe442052314fd940c08bb0807a..cc25dd949f05f5eec28123b42731ec2b98a1753f 100644 (file)
@@ -373,12 +373,12 @@ class WCF {
                }
                
                // handle banned users
-               if (WCF::getUser()->userID && WCF::getUser()->banned) {
+               if (self::getUser()->userID && self::getUser()->banned) {
                        if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && ($_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest')) {
-                               throw new AJAXException(WCF::getLanguage()->getDynamicVariable('wcf.user.error.isBanned'), AJAXException::INSUFFICIENT_PERMISSIONS);
+                               throw new AJAXException(self::getLanguage()->getDynamicVariable('wcf.user.error.isBanned'), AJAXException::INSUFFICIENT_PERMISSIONS);
                        }
                        else {
-                               throw new NamedUserException(WCF::getLanguage()->getDynamicVariable('wcf.user.error.isBanned'));
+                               throw new NamedUserException(self::getLanguage()->getDynamicVariable('wcf.user.error.isBanned'));
                        }
                }
        }