* Implement MW_VERSION constant in Defines.php and use it in preference to $wgVersion...
[lhc/web/wiklou.git] / includes / HttpFunctions.php
index 841b341..72def79 100644 (file)
@@ -112,8 +112,7 @@ class Http {
         * @return String
         */
        public static function userAgent() {
-               global $wgVersion;
-               return "MediaWiki/$wgVersion";
+               return "MediaWiki/" . MW_VERSION;
        }
 
        /**