Update to r32375 / bug 11874 -- !important may have whitespace between ! and important
[lhc/web/wiklou.git] / includes / SpecialResetpass.php
index 3ae79f8..2ecd15b 100644 (file)
@@ -1,11 +1,13 @@
 <?php
 
+/** Constructor */
 function wfSpecialResetpass( $par ) {
        $form = new PasswordResetForm();
        $form->execute( $par );
 }
 
 /**
+ * Let users recover their password.
  * @addtogroup SpecialPage
  */
 class PasswordResetForm extends SpecialPage {
@@ -23,7 +25,7 @@ class PasswordResetForm extends SpecialPage {
        /**
         * Main execution point
         */
-       function execute( $par='' ) {
+       function execute( $par ) {
                global $wgUser, $wgAuth, $wgOut, $wgRequest;
                
                if( !$wgAuth->allowPasswordChange() ) {
@@ -41,7 +43,7 @@ class PasswordResetForm extends SpecialPage {
                        $retype = $wgRequest->getVal( 'wpRetype' );
                        try {
                                $this->attemptReset( $newpass, $retype );
-                               $wgOut->addWikiText( wfMsg( 'resetpass_success' ) );
+                               $wgOut->addWikiMsg( 'resetpass_success' );
                                
                                $data = array(
                                        'action' => 'submitlogin',
@@ -72,6 +74,8 @@ class PasswordResetForm extends SpecialPage {
        
        function showForm() {
                global $wgOut, $wgUser, $wgRequest;
+
+               $wgOut->disallowUserJs();
                
                $self = SpecialPage::getTitleFor( 'Resetpass' );                
                $form  =
@@ -158,4 +162,4 @@ class PasswordResetForm extends SpecialPage {
        }
 }
 
-?>
+