Nikerabbit has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/141123

Change subject: Make the deprecation notice actually useful by listing the class
......................................................................

Make the deprecation notice actually useful by listing the class

Follows-up Id8a559a

Change-Id: I101e5e864d6c14d2a67721514f02c5166137211f
---
M includes/specialpage/SpecialPageFactory.php
1 file changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/23/141123/1

diff --git a/includes/specialpage/SpecialPageFactory.php 
b/includes/specialpage/SpecialPageFactory.php
index 5a4d742..f5e4f0e 100644
--- a/includes/specialpage/SpecialPageFactory.php
+++ b/includes/specialpage/SpecialPageFactory.php
@@ -347,10 +347,10 @@
 
                                return new $className;
                        } elseif ( is_array( $rec ) ) {
-                               // @deprecated, officially since 1.18, 
unofficially since forever
-                               wfDeprecated( "Array syntax for 
\$wgSpecialPages is deprecated, " .
-                                       "define a subclass of SpecialPage 
instead.", '1.18' );
                                $className = array_shift( $rec );
+                               // @deprecated, officially since 1.18, 
unofficially since forever
+                               wfDeprecated( "Array syntax for 
\$wgSpecialPages is deprecated ($className), " .
+                                       "define a subclass of SpecialPage 
instead.", '1.18' );
                                self::getList()->$realName = 
MWFunction::newObj( $className, $rec );
                        }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/141123
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I101e5e864d6c14d2a67721514f02c5166137211f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <[email protected]>

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

Reply via email to