From: Marcel Werk Date: Tue, 9 Apr 2013 11:47:46 +0000 (+0200) Subject: Fixed small issue X-Git-Tag: 2.0.0_Beta_1~394 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8797f7be792cc7190fe33dc15afc280c5d9a6247;p=GitHub%2FWoltLab%2FWCF.git Fixed small issue --- diff --git a/wcfsetup/install/files/lib/system/WCF.class.php b/wcfsetup/install/files/lib/system/WCF.class.php index f075bcd885..cc25dd949f 100644 --- a/wcfsetup/install/files/lib/system/WCF.class.php +++ b/wcfsetup/install/files/lib/system/WCF.class.php @@ -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')); } } }