Index: branches/REL1_17/extensions/ProofreadPage/ProofreadPage.php |
— | — | @@ -45,6 +45,15 @@ |
46 | 46 | $wgAutoloadClasses['PagesWithoutScans'] = $dir . 'SpecialPagesWithoutScans.php'; |
47 | 47 | $wgSpecialPages['PagesWithoutScans'] = 'PagesWithoutScans'; |
48 | 48 | $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 | +} |
49 | 58 | |
50 | 59 | # Group allowed to modify pagequality |
51 | 60 | $wgGroupPermissions['user']['pagequality'] = true; |
Index: branches/REL1_17/extensions/ProofreadPage/SpecialPagesWithoutScans.php |
— | — | @@ -107,7 +107,8 @@ |
108 | 108 | $dt = $this->disambiguation_templates( $dbr ); |
109 | 109 | $disambiguation_pages = "( SELECT page_id FROM $page LEFT JOIN $templatelinks ON page_id=tl_from WHERE page_namespace=" . NS_MAIN . " AND " . $dt . " )"; |
110 | 110 | |
111 | | - $sql = "SELECT page_namespace as namespace, |
| 111 | + $sql = "SELECT 'PagesWithoutScans' as type, |
| 112 | + page_namespace as namespace, |
112 | 113 | page_title as title, |
113 | 114 | page_len AS value |
114 | 115 | FROM $page $forceindex |