IAlex has uploaded a new change for review.

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


Change subject: Use get_class( $this ) instead of __CLASS__ in 
RedirectSpecialPage::execute()
......................................................................

Use get_class( $this ) instead of __CLASS__ in RedirectSpecialPage::execute()

So that it returns the subclass name and not always "RedirectSpecialPage".

Change-Id: Ibee18bc75e423e8874f9254da7cec59839ba15af
---
M includes/SpecialPage.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/70/56370/1

diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php
index 38b7d3e..46d4304 100644
--- a/includes/SpecialPage.php
+++ b/includes/SpecialPage.php
@@ -1100,7 +1100,7 @@
                        $this->getOutput()->redirect( $url );
                        return $redirect;
                } else {
-                       $class = __CLASS__;
+                       $class = get_class( $this );
                        throw new MWException( "RedirectSpecialPage $class 
doesn't redirect!" );
                }
        }

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

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

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

Reply via email to