Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -23,6 +23,9 @@ |
24 | 24 | exit( 1 ); |
25 | 25 | } |
26 | 26 | |
| 27 | +# Stable constant to let extensions be aware that this is enabled |
| 28 | +define( 'FLAGGED_REVISIONS', true ); |
| 29 | + |
27 | 30 | $wgExtensionCredits['specialpage'][] = array( |
28 | 31 | 'path' => __FILE__, |
29 | 32 | 'name' => 'Flagged Revisions', |
Index: trunk/extensions/intersection/DynamicPageList.php |
— | — | @@ -452,7 +452,7 @@ |
453 | 453 | |
454 | 454 | // Bug 14943 - Allow filtering based on FlaggedRevs stability. |
455 | 455 | // Check if the extension actually exists before changing the query... |
456 | | - if ( function_exists( 'efLoadFlaggedRevs' ) && $flaggedRevs ) { |
| 456 | + if ( $flaggedRevs && defined( 'FLAGGED_REVISIONS' ) ) { |
457 | 457 | $tables[] = 'flaggedpages'; |
458 | 458 | $join['flaggedpages'] = array( 'LEFT JOIN', 'page_id = fp_page_id' ); |
459 | 459 | |