Use local context instead of global variables
[lhc/web/wiklou.git] / includes / specials / SpecialPasswordReset.php
index d25883a..476ab05 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * Implements Special:Blankpage
+ * Implements Special:PasswordReset
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -162,7 +162,7 @@ class SpecialPasswordReset extends FormSpecialPage {
 
                // We need to have a valid IP address for the hook, but per bug 18347, we should
                // send the user's name if they're logged in.
-               $ip = wfGetIP();
+               $ip = $this->getRequest()->getIP();
                if ( !$ip ) {
                        return array( 'badipaddress' );
                }