http://www.mediawiki.org/wiki/Special:Code/MediaWiki/99570

Revision: 99570
Author:   catrope
Date:     2011-10-11 21:08:35 +0000 (Tue, 11 Oct 2011)
Log Message:
-----------
Contest: Fix version check. Has to check for >1.18 rather than >=1.19 because 
version_compare() behaves strangely for versions like 1.19alpha and 1.19wmf1

Modified Paths:
--------------
    trunk/extensions/Contest/includes/ContestantPager.php

Modified: trunk/extensions/Contest/includes/ContestantPager.php
===================================================================
--- trunk/extensions/Contest/includes/ContestantPager.php       2011-10-11 
21:07:28 UTC (rev 99569)
+++ trunk/extensions/Contest/includes/ContestantPager.php       2011-10-11 
21:08:35 UTC (rev 99570)
@@ -102,7 +102,7 @@
         * @return OutputPage
         */
        public function getOutput() {
-               return version_compare( $GLOBALS['wgVersion'], '1.19', '>=' ) ? 
parent::getOutput() : $GLOBALS['wgOut'];
+               return version_compare( $GLOBALS['wgVersion'], '1.18', '>' ) ? 
parent::getOutput() : $GLOBALS['wgOut'];
        }
        
        /**
@@ -114,7 +114,7 @@
         * @return Language
         */
        public function getLang() {
-               return version_compare( $GLOBALS['wgVersion'], '1.19', '>=' ) ? 
parent::getLang() : $GLOBALS['wgLang'];
+               return version_compare( $GLOBALS['wgVersion'], '1.18', '>' ) ? 
parent::getLang() : $GLOBALS['wgLang'];
        }
 
        public function getFieldNames() {


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to