Don't add confusing new lines to debug output, mark deprecated method
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Thu, 1 Jul 2010 07:30:55 +0000 (07:30 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Thu, 1 Jul 2010 07:30:55 +0000 (07:30 +0000)
includes/SpecialPage.php

index 2bc123c..f76966a 100644 (file)
@@ -308,8 +308,10 @@ class SpecialPage {
         * an associative record to $wgSpecialPages. This avoids autoloading SpecialPage.
         *
         * @param $page SpecialPage
+        * Deprecated in 1.7, warnings in 1.17, might be removed in 1.20
         */
        static function addPage( &$page ) {
+               wfDeprecated( __METHOD__ );
                if ( !self::$mListInitialised ) {
                        self::initList();
                }
@@ -624,16 +626,16 @@ class SpecialPage {
                        $found = false;
                        foreach ( $aliases as $n => $values ) {
                                if ( strcasecmp( $name, $n ) === 0 ) {
-                                       wfWarn( "Found alias defined for $n when searching for special page aliases
-for $name. Case mismatch?" );
+                                       wfWarn( "Found alias defined for $n when searching for" .
+                                               "special page aliases for $name. Case mismatch?" );
                                        $name = $values[0];
                                        $found = true;
                                        break;
                                }
                        }
                        if ( !$found ) {
-                               wfWarn( "Did not find alias for special page '$name'.
-Perhaps no page aliases are defined for it?" );
+                               wfWarn( "Did not find alias for special page '$name'." . 
+                                       "Perhaps no aliases are defined for it?" );
                        }
                }
                if ( $subpage !== false && !is_null( $subpage ) ) {