Index: trunk/extensions/CategoryTests/CategoryTests.php |
— | — | @@ -30,6 +30,8 @@ |
31 | 31 | $parser->setFunctionHook( 'ifcategory', array( &$wgExtCategoryTests, 'ifcategory' ) ); |
32 | 32 | $parser->setFunctionHook( 'ifnocategories', array( &$wgExtCategoryTests, 'ifnocategories' ) ); |
33 | 33 | $parser->setFunctionHook( 'switchcategory', array( &$wgExtCategoryTests, 'switchcategory' ) ); |
| 34 | + |
| 35 | + return true; |
34 | 36 | } |
35 | 37 | |
36 | 38 | class ExtCategoryTests { |
Index: trunk/extensions/ForcePreview/ForcePreview.php |
— | — | @@ -29,7 +29,7 @@ |
30 | 30 | |
31 | 31 | function efForcePreview( &$editpage, &$buttons ) { |
32 | 32 | global $wgUser; |
33 | | - if( !$wgUser->isAllowed( 'forcepreviewexempt' ) && !$editpage->preview && empty($editpage->save) ) { |
| 33 | + if( !$wgUser->isAllowed( 'forcepreviewexempt' ) && !$editpage->preview && empty( $editpage->save ) ) { |
34 | 34 | wfLoadExtensionMessages( 'ForcePreview' ); |
35 | 35 | $buttons['save'] = str_replace( '/>', 'disabled="disabled" />', $buttons['save'] ); |
36 | 36 | $buttons['save'] = preg_replace( '/value="' . wfMsg('savearticle') . '"/i', 'value="' . wfMsg('forcepreview') . '"', $buttons['save'] ); |
Index: trunk/extensions/RegexFunctions/RegexFunctions.php |
— | — | @@ -55,7 +55,7 @@ |
56 | 56 | var $modifiers = array('i', 'm', 's', 'x', 'A', 'D', 'S', 'U', 'X', 'J', 'u', 'e'); |
57 | 57 | var $options = array('i', 'm', 's', 'x', 'U', 'X', 'J'); |
58 | 58 | |
59 | | - function rmatch ( &$parser, $string = '', &$pattern = '', &$return = '', $notfound = '', $offset = 0 ) { |
| 59 | + function rmatch ( &$parser, $string = '', $pattern = '', $return = '', $notfound = '', $offset = 0 ) { |
60 | 60 | global $wgRegexFunctionsPerPage, $wgRegexFunctionsAllowModifiers, $wgRegexFunctionsDisable; |
61 | 61 | if(in_array('rmatch', $wgRegexFunctionsDisable)) |
62 | 62 | return; |
— | — | @@ -78,7 +78,7 @@ |
79 | 79 | return $return; |
80 | 80 | } |
81 | 81 | |
82 | | - function rsplit ( &$parser, $string = '', &$pattern = '', $piece = 0 ) { |
| 82 | + function rsplit ( &$parser, $string = '', $pattern = '', $piece = 0 ) { |
83 | 83 | global $wgRegexFunctionsPerPage, $wgRegexFunctionsAllowModifiers, $wgRegexFunctionsLimit, $wgRegexFunctionsDisable; |
84 | 84 | if(in_array('rsplit', $wgRegexFunctionsDisable)) |
85 | 85 | return; |
— | — | @@ -99,7 +99,7 @@ |
100 | 100 | return $res[$p]; |
101 | 101 | } |
102 | 102 | |
103 | | - function rreplace ( &$parser, $string = '', &$pattern = '', &$replace = '' ) { |
| 103 | + function rreplace ( &$parser, $string = '', $pattern = '', &$replace = '' ) { |
104 | 104 | global $wgRegexFunctionsPerPage, $wgRegexFunctionsAllowModifiers, $wgRegexFunctionsAllowE, $wgRegexFunctionsLimit, $wgRegexFunctionsDisable; |
105 | 105 | if(in_array('rreplace', $wgRegexFunctionsDisable)) |
106 | 106 | return; |