r75948 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75947‎ | r75948 | r75949 >
Date:18:18, 3 November 2010
Author:yaron
Status:deferred
Tags:
Comment:
Version 0.5: 'ApprovedPages' and 'UnapprovedPages' special pages merged into one page, 'ApprovedRevs'
Modified paths:
  • /trunk/extensions/ApprovedRevs/ApprovedRevs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ApprovedRevs/ApprovedRevs.php
@@ -9,7 +9,7 @@
1010 * @author Yaron Koren
1111 */
1212
13 -define( 'APPROVED_REVS_VERSION', '0.4.1' );
 13+define( 'APPROVED_REVS_VERSION', '0.5' );
1414
1515 // credits
1616 $wgExtensionCredits['other'][] = array(
@@ -23,6 +23,7 @@
2424
2525 // global variables
2626 $egApprovedRevsIP = dirname( __FILE__ ) . '/';
 27+$egApprovedRevsScriptPath = $wgScriptPath . '/extensions/ApprovedRevs';
2728 $egApprovedRevsNamespaces = array( NS_MAIN, NS_TEMPLATE, NS_HELP, NS_PROJECT );
2829 $egApprovedRevsBlankIfUnapproved = false;
2930
@@ -33,12 +34,9 @@
3435 // register all classes
3536 $wgAutoloadClasses['ApprovedRevs'] = $egApprovedRevsIP . 'ApprovedRevs_body.php';
3637 $wgAutoloadClasses['ApprovedRevsHooks'] = $egApprovedRevsIP . 'ApprovedRevs.hooks.php';
37 -$wgSpecialPages['ApprovedPages'] = 'ARApprovedPages';
38 -$wgAutoloadClasses['ARApprovedPages'] = $egApprovedRevsIP . 'AR_ApprovedPages.php';
39 -$wgSpecialPageGroups['ApprovedPages'] = 'pages';
40 -$wgSpecialPages['UnapprovedPages'] = 'ARUnapprovedPages';
41 -$wgAutoloadClasses['ARUnapprovedPages'] = $egApprovedRevsIP . 'AR_UnapprovedPages.php';
42 -$wgSpecialPageGroups['UnapprovedPages'] = 'pages';
 38+$wgSpecialPages['ApprovedRevs'] = 'SpecialApprovedRevs';
 39+$wgAutoloadClasses['SpecialApprovedRevs'] = $egApprovedRevsIP . 'SpecialApprovedRevs.php';
 40+$wgSpecialPageGroups['ApprovedRevs'] = 'pages';
4341
4442 // hooks
4543 $wgHooks['ParserBeforeInternalParse'][] = 'ApprovedRevsHooks::setApprovedRevForParsing';

Status & tagging log