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

Revision: 68818
Author:   nikerabbit
Date:     2010-07-01 07:30:55 +0000 (Thu, 01 Jul 2010)

Log Message:
-----------
Don't add confusing new lines to debug output, mark deprecated method

Modified Paths:
--------------
    trunk/phase3/includes/SpecialPage.php

Modified: trunk/phase3/includes/SpecialPage.php
===================================================================
--- trunk/phase3/includes/SpecialPage.php       2010-07-01 07:13:19 UTC (rev 
68817)
+++ trunk/phase3/includes/SpecialPage.php       2010-07-01 07:30:55 UTC (rev 
68818)
@@ -308,8 +308,10 @@
         * 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 @@
                        $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 ) ) {



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to