Fix call to non-static method
authorVictor Vasiliev <vasilievvv@users.mediawiki.org>
Wed, 16 Jan 2008 18:49:41 +0000 (18:49 +0000)
committerVictor Vasiliev <vasilievvv@users.mediawiki.org>
Wed, 16 Jan 2008 18:49:41 +0000 (18:49 +0000)
includes/Linker.php

index 678be8d..7861a8f 100644 (file)
@@ -723,7 +723,7 @@ class Linker {
                                $upload = SpecialPage::getTitleFor( 'Upload' );
                                if( $text == '' )
                                        $text = htmlspecialchars( $title->getPrefixedText() );
-                               $redir = RepoGroup::getLocalRepo()->checkRedirect( $title );
+                               $redir = RepoGroup::singleton()->getLocalRepo()->checkRedirect( $title );
                                if( $redir ) {  
                                        return $this->makeKnownLinkObj( $title, $text, $query, $trail, $prefix );
                                }