r81153 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r81152‎ | r81153 | r81154 >
Date:19:37, 28 January 2011
Author:catrope
Status:ok
Tags:
Comment:
ProofreadPage: Fix undefined index notices
Modified paths:
  • /trunk/extensions/ProofreadPage/ProofreadPage_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/ProofreadPage_body.php
@@ -154,7 +154,7 @@
155155 $default_header = wfMsgGetKey( 'proofreadpage_default_header', true, true, false );
156156 $default_footer = wfMsgGetKey( 'proofreadpage_default_footer', true, true, false );
157157
158 - $err = array( '', '', '', '', '', '' );
 158+ $err = array( '', '', '', '', '', '', '' );
159159 $index_title = Title::newFromText( $title->pr_index_title );
160160 if ( !$index_title ) {
161161 return $err;
@@ -185,7 +185,7 @@
186186 }
187187
188188 if ( !$index_title->exists() ) {
189 - return array( $index_title, $prev_title, $next_title, $default_header, $default_footer );
 189+ return array( $index_title, $prev_title, $next_title, $default_header, $default_footer, '', '' );
190190 }
191191
192192 // if the index page exists, find current page number, previous and next pages

Status & tagging log