Do proper conversion table detection.
authorLiangent <liangent@gmail.com>
Sun, 10 Jun 2012 16:12:56 +0000 (00:12 +0800)
committerLiangent <liangent@gmail.com>
Sun, 10 Jun 2012 16:21:13 +0000 (00:21 +0800)
MediaWiki:NotConversiontable/zh-cn and
MediaWiki:Conversiontable2/zh-cn are not conversion tables.

Change-Id: Id132330e20e1a33985aa336b1c26268b036f2dad

includes/Title.php

index 481f480..046fadb 100644 (file)
@@ -936,7 +936,7 @@ class Title {
         */
        public function isConversionTable() {
                return $this->getNamespace() == NS_MEDIAWIKI &&
-                       strpos( $this->getText(), 'Conversiontable' ) !== false;
+                       strpos( $this->getText(), 'Conversiontable/' ) === 0;
        }
 
        /**