Index: trunk/extensions/ApprovedRevs/ApprovedRevs.php |
— | — | @@ -9,7 +9,7 @@ |
10 | 10 | * @author Yaron Koren |
11 | 11 | */ |
12 | 12 | |
13 | | -define( 'APPROVED_REVS_VERSION', '0.4.1' ); |
| 13 | +define( 'APPROVED_REVS_VERSION', '0.5' ); |
14 | 14 | |
15 | 15 | // credits |
16 | 16 | $wgExtensionCredits['other'][] = array( |
— | — | @@ -23,6 +23,7 @@ |
24 | 24 | |
25 | 25 | // global variables |
26 | 26 | $egApprovedRevsIP = dirname( __FILE__ ) . '/'; |
| 27 | +$egApprovedRevsScriptPath = $wgScriptPath . '/extensions/ApprovedRevs'; |
27 | 28 | $egApprovedRevsNamespaces = array( NS_MAIN, NS_TEMPLATE, NS_HELP, NS_PROJECT ); |
28 | 29 | $egApprovedRevsBlankIfUnapproved = false; |
29 | 30 | |
— | — | @@ -33,12 +34,9 @@ |
34 | 35 | // register all classes |
35 | 36 | $wgAutoloadClasses['ApprovedRevs'] = $egApprovedRevsIP . 'ApprovedRevs_body.php'; |
36 | 37 | $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'; |
43 | 41 | |
44 | 42 | // hooks |
45 | 43 | $wgHooks['ParserBeforeInternalParse'][] = 'ApprovedRevsHooks::setApprovedRevForParsing'; |