r82548 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82547‎ | r82548 | r82549 >
Date:13:51, 21 February 2011
Author:thomasv
Status:ok
Tags:
Comment:
register special page in wgQueryPages
Modified paths:
  • /branches/REL1_17/extensions/ProofreadPage/ProofreadPage.php (modified) (history)
  • /branches/REL1_17/extensions/ProofreadPage/SpecialPagesWithoutScans.php (modified) (history)

Diff [purge]

Index: branches/REL1_17/extensions/ProofreadPage/ProofreadPage.php
@@ -45,6 +45,15 @@
4646 $wgAutoloadClasses['PagesWithoutScans'] = $dir . 'SpecialPagesWithoutScans.php';
4747 $wgSpecialPages['PagesWithoutScans'] = 'PagesWithoutScans';
4848 $wgSpecialPageGroups['PagesWithoutScans'] = 'maintenance';
 49+# for maintenance/updateSpecialPages.php
 50+$wgHooks['wgQueryPages'][] = 'wfPagesWithoutScan';
 51+function wfPagesWithoutScan( &$QueryPages ) {
 52+ $QueryPages[] = array(
 53+ 'PagesWithoutScansQuery',
 54+ 'PagesWithoutScans'
 55+ );
 56+ return true;
 57+}
4958
5059 # Group allowed to modify pagequality
5160 $wgGroupPermissions['user']['pagequality'] = true;
Index: branches/REL1_17/extensions/ProofreadPage/SpecialPagesWithoutScans.php
@@ -107,7 +107,8 @@
108108 $dt = $this->disambiguation_templates( $dbr );
109109 $disambiguation_pages = "( SELECT page_id FROM $page LEFT JOIN $templatelinks ON page_id=tl_from WHERE page_namespace=" . NS_MAIN . " AND " . $dt . " )";
110110
111 - $sql = "SELECT page_namespace as namespace,
 111+ $sql = "SELECT 'PagesWithoutScans' as type,
 112+ page_namespace as namespace,
112113 page_title as title,
113114 page_len AS value
114115 FROM $page $forceindex

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r82506register PagesWithoutScans page in QueryPagesthomasv12:39, 20 February 2011

Status & tagging log