r82506 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82505‎ | r82506 | r82507 >
Date:12:39, 20 February 2011
Author:thomasv
Status:ok
Tags:
Comment:
register PagesWithoutScans page in QueryPages
Modified paths:
  • /trunk/extensions/ProofreadPage/ProofreadPage.php (modified) (history)
  • /trunk/extensions/ProofreadPage/SpecialPagesWithoutScans.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/SpecialPagesWithoutScans.php
@@ -106,6 +106,7 @@
107107 return array(
108108 'tables' => 'page',
109109 'fields' => array(
 110+ "'PagesWithoutScans' AS type",
110111 'page_namespace AS namespace',
111112 'page_title AS title',
112113 'page_len AS value' ),
Index: trunk/extensions/ProofreadPage/ProofreadPage.php
@@ -46,6 +46,15 @@
4747 $wgAutoloadClasses['PagesWithoutScans'] = $dir . 'SpecialPagesWithoutScans.php';
4848 $wgSpecialPages['PagesWithoutScans'] = 'PagesWithoutScans';
4949 $wgSpecialPageGroups['PagesWithoutScans'] = 'maintenance';
 50+# for maintenance/updateSpecialPages.php
 51+$wgHooks['wgQueryPages'][] = 'wfPagesWithoutScan';
 52+function wfPagesWithoutScan( &$QueryPages ) {
 53+ $QueryPages[] = array(
 54+ 'PagesWithoutScans',
 55+ 'PagesWithoutScans'
 56+ );
 57+ return true;
 58+}
5059
5160 # Group allowed to modify pagequality
5261 $wgGroupPermissions['user']['pagequality'] = true;

Follow-up revisions

RevisionCommit summaryAuthorDate
r82548register special page in wgQueryPagesthomasv13:51, 21 February 2011

Status & tagging log