Merge "Do proper conversion table detection."
authorSiebrand <s.mazeland@xs4all.nl>
Fri, 15 Jun 2012 12:53:12 +0000 (12:53 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 15 Jun 2012 12:53:14 +0000 (12:53 +0000)
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;
        }
 
        /**