getRequestURI() is now static
authorAlexander Ebert <ebert@woltlab.com>
Mon, 25 Feb 2013 13:56:00 +0000 (14:56 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 25 Feb 2013 13:56:00 +0000 (14:56 +0100)
wcfsetup/install/files/lib/system/WCF.class.php

index 57273bfa9599f7edc4f61b7a732e1c762c1326ab..dc5feddc673ae087b9f5f6295e7720d7227fc6e8 100644 (file)
@@ -647,7 +647,7 @@ class WCF {
         * @return      string
         */
        public function getAnchor($fragment) {
-               return $this->getRequestURI() . '#' . $fragment;
+               return self::getRequestURI() . '#' . $fragment;
        }
        
        /**
@@ -655,7 +655,7 @@ class WCF {
         *
         * @return      string
         */
-       public function getRequestURI() {
+       public static function getRequestURI() {
                // resolve path and query components
                $scriptName = $_SERVER['SCRIPT_NAME'];
                if (empty($_SERVER['PATH_INFO'])) {