Index: trunk/extensions/ProofreadPage/ProofreadPage.php |
— | — | @@ -126,6 +126,8 @@ |
127 | 127 | |
128 | 128 | function pr_navigation( $image ) { |
129 | 129 | global $wgTitle; |
| 130 | + $index_title = Title::newFromText( $wgTitle->pr_index_title ); |
| 131 | + |
130 | 132 | $page_namespace = preg_quote( wfMsgForContent( 'proofreadpage_namespace' ), '/' ); |
131 | 133 | $index_namespace = preg_quote( wfMsgForContent( 'proofreadpage_index_namespace' ), '/' ); |
132 | 134 | $err = array( '', '', '', array() ); |
— | — | @@ -160,7 +162,6 @@ |
161 | 163 | $next_url = ''; |
162 | 164 | } |
163 | 165 | |
164 | | - |
165 | 166 | if( !$index_title ) return array( '', $prev_url, $next_url, array() ) ; |
166 | 167 | |
167 | 168 | $index_url = $index_title->getFullURL(); |