* Made special page names case-insensitive and localisable. Care has been taken to...
[lhc/web/wiklou.git] / includes / SpecialBlockip.php
index 4eb4957..567fd82 100644 (file)
@@ -73,7 +73,7 @@ class IPBlockForm {
                $mIpbothertime = wfMsgHtml( 'ipbotheroption' );
                $mIpbreason = wfMsgHtml( 'ipbreason' );
                $mIpbsubmit = wfMsgHtml( 'ipbsubmit' );
-               $titleObj = Title::makeTitle( NS_SPECIAL, 'Blockip' );
+               $titleObj = SpecialPage::getTitleFor( 'Blockip' );
                $action = $titleObj->escapeLocalURL( "action=submit" );
 
                if ( "" != $err ) {
@@ -260,7 +260,7 @@ class IPBlockForm {
                          $this->BlockReason, $expirestr );
 
                        # Report to the user
-                       $titleObj = Title::makeTitle( NS_SPECIAL, 'Blockip' );
+                       $titleObj = SpecialPage::getTitleFor( 'Blockip' );
                        $wgOut->redirect( $titleObj->getFullURL( 'action=success&ip=' .
                                urlencode( $this->BlockAddress ) ) );
                }