Use AutoLoader to load classes:
[lhc/web/wiklou.git] / includes / SpecialVersion.php
index 5f7e857..c941e2b 100644 (file)
@@ -190,7 +190,7 @@ class SpecialVersion {
         * @return string
         */
        function IPInfo() {
-               $ip =  str_replace( '--', ' - ', htmlspecialchars( wfGetIP() ) );
+               $ip =  str_replace( '--', ' - ', htmlspecialchars( ProxyTools::getIP() ) );
                return "<!-- visited from $ip -->\n" .
                        "<span style='display:none'>visited from $ip</span>";
        }