From: Alexandre Emsenhuber Date: Thu, 28 Mar 2013 07:42:10 +0000 (+0100) Subject: Use get_class( $this ) instead of __CLASS__ in RedirectSpecialPage::execute() X-Git-Tag: 1.31.0-rc.0~20192^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=1c5b203b105b0789ca83c2c0ebed7a8a06059622;p=lhc%2Fweb%2Fwiklou.git Use get_class( $this ) instead of __CLASS__ in RedirectSpecialPage::execute() So that it returns the subclass name and not always "RedirectSpecialPage". Change-Id: Ibee18bc75e423e8874f9254da7cec59839ba15af --- diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index 38b7d3ecc5..46d4304820 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -1100,7 +1100,7 @@ abstract class RedirectSpecialPage extends UnlistedSpecialPage { $this->getOutput()->redirect( $url ); return $redirect; } else { - $class = __CLASS__; + $class = get_class( $this ); throw new MWException( "RedirectSpecialPage $class doesn't redirect!" ); } }