r48835 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48834‎ | r48835 | r48836 >
Date:16:13, 25 March 2009
Author:thomasv
Status:ok
Tags:
Comment:
fix index_title
Modified paths:
  • /trunk/extensions/ProofreadPage/ProofreadPage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/ProofreadPage.php
@@ -126,6 +126,8 @@
127127
128128 function pr_navigation( $image ) {
129129 global $wgTitle;
 130+ $index_title = Title::newFromText( $wgTitle->pr_index_title );
 131+
130132 $page_namespace = preg_quote( wfMsgForContent( 'proofreadpage_namespace' ), '/' );
131133 $index_namespace = preg_quote( wfMsgForContent( 'proofreadpage_index_namespace' ), '/' );
132134 $err = array( '', '', '', array() );
@@ -160,7 +162,6 @@
161163 $next_url = '';
162164 }
163165
164 -
165166 if( !$index_title ) return array( '', $prev_url, $next_url, array() ) ;
166167
167168 $index_url = $index_title->getFullURL();

Status & tagging log