Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -1,11 +1,16 @@ |
2 | 2 | <?php |
3 | 3 | #(c) Aaron Schulz, Joerg Baach, 2007-2008 GPL |
4 | 4 | |
5 | | -if ( !defined( 'MEDIAWIKI' ) ) { |
| 5 | +if( !defined('MEDIAWIKI') ) { |
6 | 6 | echo "FlaggedRevs extension\n"; |
7 | 7 | exit( 1 ); |
8 | 8 | } |
9 | 9 | |
| 10 | +# This messes with dump HTML... |
| 11 | +if( defined('MW_HTML_FOR_DUMP') ) { |
| 12 | + return; |
| 13 | +} |
| 14 | + |
10 | 15 | # Quality -> Sighted (default) |
11 | 16 | if( !defined('FLAGGED_VIS_NORMAL') ) |
12 | 17 | define('FLAGGED_VIS_NORMAL',0); |
— | — | @@ -269,6 +274,7 @@ |
270 | 275 | ######### Hook attachments ######### |
271 | 276 | # Remove stand-alone patrolling |
272 | 277 | $wgHooks['UserGetRights'][] = 'FlaggedRevs::stripPatrolRights'; |
| 278 | + |
273 | 279 | # Autopromote Editors |
274 | 280 | $wgHooks['ArticleSaveComplete'][] = 'FlaggedRevs::autoPromoteUser'; |
275 | 281 | # Adds table link references to include ones from the stable version |
— | — | @@ -314,12 +320,12 @@ |
315 | 321 | |
316 | 322 | # Visibility - experimental |
317 | 323 | $wgHooks['userCan'][] = 'FlaggedRevs::userCanView'; |
318 | | - |
319 | 324 | # Main hooks, overrides pages content, adds tags, sets tabs and permalink |
320 | 325 | $wgHooks['SkinTemplateTabs'][] = 'FlaggedRevs::setActionTabs'; |
321 | 326 | # Change last-modified footer |
322 | 327 | $wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'FlaggedRevs::setLastModified'; |
323 | | -# Update older, incomplete, page caches (ones that lack template Ids/image timestamps) |
| 328 | + |
| 329 | +# Override current revision, add patrol links, set cache... |
324 | 330 | $wgHooks['ArticleViewHeader'][] = 'FlaggedRevs::onArticleViewHeader'; |
325 | 331 | # Add page notice |
326 | 332 | $wgHooks['SkinTemplateBuildNavUrlsNav_urlsAfterPermalink'][] = 'FlaggedRevs::setPermaLink'; |
— | — | @@ -345,7 +351,6 @@ |
346 | 352 | |
347 | 353 | # Set aliases |
348 | 354 | $wgHooks['LanguageGetSpecialPageAliases'][] = 'FlaggedRevs::addLocalizedSpecialPageNames'; |
349 | | - |
350 | 355 | ######### |
351 | 356 | |
352 | 357 | function efLoadFlaggedRevs() { |
Index: trunk/extensions/DumpHTML/dumpHTML.php |
— | — | @@ -31,6 +31,8 @@ |
32 | 32 | |
33 | 33 | ENDS; |
34 | 34 | |
| 35 | +define( 'MW_HTML_FOR_DUMP', 1 ); |
| 36 | + |
35 | 37 | $optionsWithArgs = array( 's', 'd', 'e', 'k', 'checkpoint', 'slice', 'udp-profile' ); |
36 | 38 | $options = array( 'help' ); |
37 | 39 | $profiling = false; |