Fixed self-reference (self:: instead of WCF::)
authorAlexander Ebert <ebert@woltlab.com>
Thu, 4 Jun 2015 12:44:20 +0000 (14:44 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 4 Jun 2015 12:44:20 +0000 (14:44 +0200)
wcfsetup/install/files/lib/system/WCF.class.php

index 1c881410802fe48d9c68cee8a624bc1bc73b6ee4..e6ed30d7e6f63827865b6d9a57cb8a1ddd9e47cf 100644 (file)
@@ -390,7 +390,7 @@ class WCF {
                if (defined('BLACKLIST_IP_ADDRESSES') && BLACKLIST_IP_ADDRESSES != '') {
                        if (!StringUtil::executeWordFilter(UserUtil::convertIPv6To4(self::getSession()->ipAddress), BLACKLIST_IP_ADDRESSES)) {
                                if ($isAjax) {
-                                       throw new AJAXException(WCF::getLanguage()->get('wcf.ajax.error.permissionDenied'), AJAXException::INSUFFICIENT_PERMISSIONS);
+                                       throw new AJAXException(self::getLanguage()->get('wcf.ajax.error.permissionDenied'), AJAXException::INSUFFICIENT_PERMISSIONS);
                                }
                                else {
                                        throw new PermissionDeniedException();
@@ -398,7 +398,7 @@ class WCF {
                        }
                        else if (!StringUtil::executeWordFilter(self::getSession()->ipAddress, BLACKLIST_IP_ADDRESSES)) {
                                if ($isAjax) {
-                                       throw new AJAXException(WCF::getLanguage()->get('wcf.ajax.error.permissionDenied'), AJAXException::INSUFFICIENT_PERMISSIONS);
+                                       throw new AJAXException(self::getLanguage()->get('wcf.ajax.error.permissionDenied'), AJAXException::INSUFFICIENT_PERMISSIONS);
                                }
                                else {
                                        throw new PermissionDeniedException();
@@ -408,7 +408,7 @@ class WCF {
                if (defined('BLACKLIST_USER_AGENTS') && BLACKLIST_USER_AGENTS != '') {
                        if (!StringUtil::executeWordFilter(self::getSession()->userAgent, BLACKLIST_USER_AGENTS)) {
                                if ($isAjax) {
-                                       throw new AJAXException(WCF::getLanguage()->get('wcf.ajax.error.permissionDenied'), AJAXException::INSUFFICIENT_PERMISSIONS);
+                                       throw new AJAXException(self::getLanguage()->get('wcf.ajax.error.permissionDenied'), AJAXException::INSUFFICIENT_PERMISSIONS);
                                }
                                else {
                                        throw new PermissionDeniedException();
@@ -418,7 +418,7 @@ class WCF {
                if (defined('BLACKLIST_HOSTNAMES') && BLACKLIST_HOSTNAMES != '') {
                        if (!StringUtil::executeWordFilter(@gethostbyaddr(self::getSession()->ipAddress), BLACKLIST_HOSTNAMES)) {
                                if ($isAjax) {
-                                       throw new AJAXException(WCF::getLanguage()->get('wcf.ajax.error.permissionDenied'), AJAXException::INSUFFICIENT_PERMISSIONS);
+                                       throw new AJAXException(self::getLanguage()->get('wcf.ajax.error.permissionDenied'), AJAXException::INSUFFICIENT_PERMISSIONS);
                                }
                                else {
                                        throw new PermissionDeniedException();