Index: trunk/extensions/ProofreadPage/SpecialPagesWithoutScans.php |
— | — | @@ -106,6 +106,7 @@ |
107 | 107 | return array( |
108 | 108 | 'tables' => 'page', |
109 | 109 | 'fields' => array( |
| 110 | + "'PagesWithoutScans' AS type", |
110 | 111 | 'page_namespace AS namespace', |
111 | 112 | 'page_title AS title', |
112 | 113 | 'page_len AS value' ), |
Index: trunk/extensions/ProofreadPage/ProofreadPage.php |
— | — | @@ -46,6 +46,15 @@ |
47 | 47 | $wgAutoloadClasses['PagesWithoutScans'] = $dir . 'SpecialPagesWithoutScans.php'; |
48 | 48 | $wgSpecialPages['PagesWithoutScans'] = 'PagesWithoutScans'; |
49 | 49 | $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 | +} |
50 | 59 | |
51 | 60 | # Group allowed to modify pagequality |
52 | 61 | $wgGroupPermissions['user']['pagequality'] = true; |