Index: trunk/extensions/ProofreadPage/ProofreadPage.php |
— | — | @@ -130,7 +130,6 @@ |
131 | 131 | $index_namespace = preg_quote( wfMsgForContent( 'proofreadpage_index_namespace' ), '/' ); |
132 | 132 | $err = array( '', '', '', array() ); |
133 | 133 | |
134 | | - |
135 | 134 | //if multipage, we use the page order, but we should read pagenum from the index |
136 | 135 | if( $image && $image->exists() && $image->isMultiPage() ) { |
137 | 136 | |
— | — | @@ -162,14 +161,15 @@ |
163 | 162 | } |
164 | 163 | |
165 | 164 | |
166 | | - if( !$index_title ) return $err; |
167 | | - if( !$index_title->exists()) return $err; |
| 165 | + if( !$index_title ) return array( '', $prev_url, $next_url, array() ) ; |
168 | 166 | |
| 167 | + $index_url = $index_title->getFullURL(); |
| 168 | + |
| 169 | + if( !$index_title->exists()) return array( $index_url, $prev_url, $next_url, array() ); |
| 170 | + |
169 | 171 | //if the index page exists, read metadata |
170 | | - |
171 | 172 | list( $prev_title, $next_title, $attributes ) = pr_parse_index($index_title,$wgTitle); |
172 | 173 | |
173 | | - $index_url = $index_title->getFullURL(); |
174 | 174 | if($prev_title) $prev_url = $prev_title->getFullURL(); |
175 | 175 | if($next_title) $next_url = $next_title->getFullURL(); |
176 | 176 | |