Special pages aren't a contextsource. Ping r100114, pass $this->getContext()
authorSam Reed <reedy@users.mediawiki.org>
Mon, 5 Mar 2012 22:43:10 +0000 (22:43 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Mon, 5 Mar 2012 22:43:10 +0000 (22:43 +0000)
includes/specials/SpecialUserlogin.php

index fa1713f..bc928c7 100644 (file)
@@ -804,7 +804,7 @@ class LoginForm extends SpecialPage {
        function resetLoginForm( $error ) {
                $this->getOutput()->addHTML( Xml::element('p', array( 'class' => 'error' ), $error ) );
                $reset = new SpecialChangePassword();
-               $reset->setContext( $this );
+               $reset->setContext( $this->getContext() );
                $reset->execute( null );
        }