Fix PHP notice from r31871. Thanks to Aaron :)
authorRaimond Spekking <raymond@users.mediawiki.org>
Wed, 12 Mar 2008 15:48:11 +0000 (15:48 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Wed, 12 Mar 2008 15:48:11 +0000 (15:48 +0000)
includes/ProtectionForm.php

index 181e9bb..03e4c8c 100644 (file)
@@ -120,7 +120,7 @@ class ProtectionForm {
                }
 
                $sk = $wgUser->getSkin();
-               $titleLink = $sk->makeLinkObj( Title::newFromURL( $this->mTitle ) );
+               $titleLink = $sk->makeLinkObj( $this->mTitle );
                $wgOut->setPageTitle( wfMsg( 'protect-title', $this->mTitle->getPrefixedText() ) );
                $wgOut->setSubtitle( wfMsg( 'protect-backlink', $titleLink ) );