r73368 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73367‎ | r73368 | r73369 >
Date:09:34, 20 September 2010
Author:thomasv
Status:ok
Tags:
Comment:
renaming special page, follow-up to r73338
Modified paths:
  • /trunk/extensions/ProofreadPage/ProofreadPage.i18n.php (modified) (history)
  • /trunk/extensions/ProofreadPage/ProofreadPage.php (modified) (history)
  • /trunk/extensions/ProofreadPage/SpecialNakedPages.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/ProofreadPage.i18n.php
@@ -10,7 +10,7 @@
1111
1212 $messages['en'] = array(
1313 'indexpages' => 'List of index pages',
14 - 'nakedpages' => 'Texts without scans',
 14+ 'pageswithoutscans' => 'Pages without scans',
1515 'proofreadpage_desc' => 'Allow easy comparison of text to the original scan',
1616 'proofreadpage_namespace' => 'Page',
1717 'proofreadpage_index_namespace' => 'Index',
Index: trunk/extensions/ProofreadPage/SpecialNakedPages.php
@@ -23,23 +23,23 @@
2424 *
2525 */
2626
27 -class NakedPages extends SpecialPage {
 27+class PagesWithoutScans extends SpecialPage {
2828
2929 function __construct() {
30 - parent::__construct( 'NakedPages' );
 30+ parent::__construct( 'PagesWithoutScans' );
3131 }
3232
3333 function execute( $parameters ) {
3434 global $wgOut, $wgRequest, $wgDisableTextSearch;
3535 $this->setHeaders();
3636 list( $limit, $offset ) = wfCheckLimits();
37 - $cnl = new NakedPagesQuery( );
 37+ $cnl = new PagesWithoutScansQuery( );
3838 $cnl->doQuery( $offset, $limit );
3939 }
4040 }
4141
4242
43 -class NakedPagesQuery extends QueryPage {
 43+class PagesWithoutScansQuery extends QueryPage {
4444
4545 function __construct( ) {
4646 wfLoadExtensionMessages( 'ProofreadPage' );
@@ -48,7 +48,7 @@
4949 }
5050
5151 function getName() {
52 - return 'NakedPages';
 52+ return 'PagesWithoutScans';
5353 }
5454
5555 function isExpensive() {
Index: trunk/extensions/ProofreadPage/ProofreadPage.php
@@ -44,9 +44,9 @@
4545 $wgSpecialPageGroups['IndexPages'] = 'pages';
4646
4747 # special page
48 -$wgAutoloadClasses['NakedPages'] = dirname( __FILE__ ) . '/SpecialNakedPages.php';
49 -$wgSpecialPages['NakedPages'] = 'NakedPages';
50 -$wgSpecialPageGroups['NakedPages'] = 'maintenance';
 48+$wgAutoloadClasses['PagesWithoutScans'] = dirname( __FILE__ ) . '/SpecialNakedPages.php';
 49+$wgSpecialPages['PagesWithoutScans'] = 'PagesWithoutScans';
 50+$wgSpecialPageGroups['PagesWithoutScans'] = 'maintenance';
5151
5252 # Bump the version number every time you change proofread.js
5353 $wgProofreadPageVersion = 27;

Follow-up revisions

RevisionCommit summaryAuthorDate
r73385Follow-up r73368: Add special page alias file for the new and a long time exi...raymond16:17, 20 September 2010

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r73338special page to list texts without scansthomasv19:08, 19 September 2010

Status & tagging log