Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -272,57 +272,46 @@ |
273 | 273 | $wgAutoloadClasses['FlaggedArticle'] = $dir . 'FlaggedArticle.php'; |
274 | 274 | # Load FlaggedRevision object class |
275 | 275 | $wgAutoloadClasses['FlaggedRevision'] = $dir . 'FlaggedRevision.php'; |
| 276 | + |
276 | 277 | # Load review UI |
277 | | -$wgSpecialPages['RevisionReview'] = 'RevisionReview'; |
278 | 278 | $wgAutoloadClasses['RevisionReview'] = $dir . 'specialpages/RevisionReview_body.php'; |
279 | 279 | # Load reader feedback UI |
280 | | -$wgSpecialPages['ReaderFeedback'] = 'ReaderFeedback'; |
281 | 280 | $wgAutoloadClasses['ReaderFeedback'] = $dir . 'specialpages/ReaderFeedback_body.php'; |
282 | 281 | |
283 | 282 | # Load stableversions UI |
284 | | -$wgSpecialPages['StableVersions'] = 'StableVersions'; |
285 | 283 | $wgAutoloadClasses['StableVersions'] = $dir . 'specialpages/StableVersions_body.php'; |
286 | 284 | $wgExtensionMessagesFiles['StableVersions'] = $langDir . 'StableVersions.i18n.php'; |
287 | 285 | # Stable version config |
288 | | -$wgSpecialPages['Stabilization'] = 'Stabilization'; |
289 | 286 | $wgAutoloadClasses['Stabilization'] = $dir . 'specialpages/Stabilization_body.php'; |
290 | 287 | $wgExtensionMessagesFiles['Stabilization'] = $langDir . 'Stabilization.i18n.php'; |
291 | 288 | # Page rating history |
292 | | -$wgSpecialPages['RatingHistory'] = 'RatingHistory'; |
293 | 289 | $wgAutoloadClasses['RatingHistory'] = $dir . 'specialpages/RatingHistory_body.php'; |
294 | 290 | $wgExtensionMessagesFiles['RatingHistory'] = $langDir . 'RatingHistory.i18n.php'; |
295 | 291 | # Load unreviewed pages list |
296 | | -$wgSpecialPages['UnreviewedPages'] = 'UnreviewedPages'; |
297 | 292 | $wgAutoloadClasses['UnreviewedPages'] = $dir . 'specialpages/UnreviewedPages_body.php'; |
298 | 293 | $wgExtensionMessagesFiles['UnreviewedPages'] = $langDir . 'UnreviewedPages.i18n.php'; |
299 | 294 | $wgSpecialPageGroups['UnreviewedPages'] = 'quality'; |
300 | 295 | # Load "in need of re-review" pages list |
301 | | -$wgSpecialPages['OldReviewedPages'] = 'OldReviewedPages'; |
302 | 296 | $wgAutoloadClasses['OldReviewedPages'] = $dir . 'specialpages/OldReviewedPages_body.php'; |
303 | 297 | $wgExtensionMessagesFiles['OldReviewedPages'] = $langDir . 'OldReviewedPages.i18n.php'; |
304 | 298 | $wgSpecialPageGroups['OldReviewedPages'] = 'quality'; |
305 | 299 | # Load reviewed pages list |
306 | | -$wgSpecialPages['ReviewedPages'] = 'ReviewedPages'; |
307 | 300 | $wgAutoloadClasses['ReviewedPages'] = $dir . 'specialpages/ReviewedPages_body.php'; |
308 | 301 | $wgExtensionMessagesFiles['ReviewedPages'] = $langDir . 'ReviewedPages.i18n.php'; |
309 | 302 | $wgSpecialPageGroups['ReviewedPages'] = 'quality'; |
310 | 303 | # Load stable pages list |
311 | | -$wgSpecialPages['StablePages'] = 'StablePages'; |
312 | 304 | $wgAutoloadClasses['StablePages'] = $dir . 'specialpages/StablePages_body.php'; |
313 | 305 | $wgExtensionMessagesFiles['StablePages'] = $langDir . 'StablePages.i18n.php'; |
314 | 306 | $wgSpecialPageGroups['StablePages'] = 'quality'; |
315 | 307 | # To oversee quality revisions |
316 | | -$wgSpecialPages['QualityOversight'] = 'QualityOversight'; |
317 | 308 | $wgAutoloadClasses['QualityOversight'] = $dir . 'specialpages/QualityOversight_body.php'; |
318 | 309 | $wgExtensionMessagesFiles['QualityOversight'] = $langDir . 'QualityOversight.i18n.php'; |
319 | 310 | $wgSpecialPageGroups['QualityOversight'] = 'quality'; |
320 | 311 | # To oversee quality revisions |
321 | | -$wgSpecialPages['ProblemPages'] = 'ProblemPages'; |
322 | 312 | $wgAutoloadClasses['ProblemPages'] = $dir . 'specialpages/ProblemPages_body.php'; |
323 | 313 | $wgExtensionMessagesFiles['ProblemPages'] = $langDir . 'ProblemPages.i18n.php'; |
324 | 314 | $wgSpecialPageGroups['ProblemPages'] = 'quality'; |
325 | 315 | # Statistics |
326 | | -$wgSpecialPages['ValidationStatistics'] = 'ValidationStatistics'; |
327 | 316 | $wgAutoloadClasses['ValidationStatistics'] = $dir . 'specialpages/ValidationStatistics_body.php'; |
328 | 317 | $wgExtensionMessagesFiles['ValidationStatistics'] = $langDir . 'ValidationStatistics.i18n.php'; |
329 | 318 | $wgSpecialPageGroups['ValidationStatistics'] = 'quality'; |
— | — | @@ -411,11 +400,26 @@ |
412 | 401 | ######### |
413 | 402 | |
414 | 403 | function efLoadFlaggedRevs() { |
415 | | - global $wgUseRCPatrol; |
416 | | - // wfLoadExtensionMessages( 'FlaggedRevs' ); |
| 404 | + global $wgUseRCPatrol, $wgSpecialPages, $wgFlaggedRevsNamespaces, $wgFeedbackNamespaces; |
417 | 405 | # Use RC Patrolling to check for vandalism |
418 | 406 | # When revisions are flagged, they count as patrolled |
419 | 407 | $wgUseRCPatrol = true; |
| 408 | + if( !empty($wgFlaggedRevsNamespaces) ) { |
| 409 | + $wgSpecialPages['RevisionReview'] = 'RevisionReview'; |
| 410 | + $wgSpecialPages['StableVersions'] = 'StableVersions'; |
| 411 | + $wgSpecialPages['Stabilization'] = 'Stabilization'; |
| 412 | + $wgSpecialPages['UnreviewedPages'] = 'UnreviewedPages'; |
| 413 | + $wgSpecialPages['OldReviewedPages'] = 'OldReviewedPages'; |
| 414 | + $wgSpecialPages['ReviewedPages'] = 'ReviewedPages'; |
| 415 | + $wgSpecialPages['StablePages'] = 'StablePages'; |
| 416 | + $wgSpecialPages['QualityOversight'] = 'QualityOversight'; |
| 417 | + $wgSpecialPages['ValidationStatistics'] = 'ValidationStatistics'; |
| 418 | + } |
| 419 | + if( !empty($wgFeedbackNamespaces) ) { |
| 420 | + $wgSpecialPages['ReaderFeedback'] = 'ReaderFeedback'; |
| 421 | + $wgSpecialPages['RatingHistory'] = 'RatingHistory'; |
| 422 | + $wgSpecialPages['ProblemPages'] = 'ProblemPages'; |
| 423 | + } |
420 | 424 | } |
421 | 425 | |
422 | 426 | # Add review log |