Index: trunk/extensions/RegexFun/RegexFun.php |
— | — | @@ -4,15 +4,13 @@ |
5 | 5 | * 'Regex Fun' is a MediaWiki extension which adds parser functions for performing regular |
6 | 6 | * expression searches and replacements. |
7 | 7 | * |
8 | | - * Info on mediawiki.org: http://www.mediawiki.org/wiki/Extension:Regex_Fun |
| 8 | + * Documentation: http://www.mediawiki.org/wiki/Extension:Regex_Fun |
| 9 | + * Support: http://www.mediawiki.org/wiki/Extension_talk:Regex_Fun |
| 10 | + * Source code: http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/RegexFun |
9 | 11 | * |
10 | 12 | * @version: 1.0.1 |
11 | 13 | * @license: ISC license |
12 | 14 | * @author: Daniel Werner < danweetz@web.de > |
13 | | - * |
14 | | - * Documentation: http://www.mediawiki.org/wiki/Extension:Regex_Fun |
15 | | - * Support: http://www.mediawiki.org/wiki/Extension_talk:Regex_Fun |
16 | | - * Source code: http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/RegexFun |
17 | 15 | * |
18 | 16 | * @file RegexFun.php |
19 | 17 | * @ingroup RegexFun |
— | — | @@ -32,9 +30,11 @@ |
33 | 31 | 'url' => 'http://www.mediawiki.org/wiki/Extension:Regex_Fun', |
34 | 32 | ); |
35 | 33 | |
| 34 | +// language files: |
36 | 35 | $wgExtensionMessagesFiles['RegexFun' ] = ExtRegexFun::getDir() . '/RegexFun.i18n.php'; |
37 | 36 | $wgExtensionMessagesFiles['RegexFunMagic'] = ExtRegexFun::getDir() . '/RegexFun.i18n.magic.php'; |
38 | 37 | |
| 38 | +// hooks registration: |
39 | 39 | $wgHooks['ParserFirstCallInit'][] = 'ExtRegexFun::init'; |
40 | 40 | $wgHooks['ParserClearState' ][] = 'ExtRegexFun::onParserClearState'; |
41 | 41 | $wgHooks['ParserLimitReport' ][] = 'ExtRegexFun::onParserLimitReport'; |
— | — | @@ -42,6 +42,7 @@ |
43 | 43 | // Include the settings file: |
44 | 44 | require_once ExtRegexFun::getDir() . '/RegexFun_Settings.php'; |
45 | 45 | |
| 46 | + |
46 | 47 | /** |
47 | 48 | * Extension class with all the regex functions functionality |
48 | 49 | * |
— | — | @@ -50,7 +51,7 @@ |
51 | 52 | class ExtRegexFun { |
52 | 53 | |
53 | 54 | /** |
54 | | - * Version of the RegexFun extension. |
| 55 | + * Version of the 'RegexFun' extension. |
55 | 56 | * |
56 | 57 | * @since 1.0 |
57 | 58 | * |
— | — | @@ -87,7 +88,7 @@ |
88 | 89 | * |
89 | 90 | * @since 1.0 |
90 | 91 | * |
91 | | - * @return boolean |
| 92 | + * @return string |
92 | 93 | */ |
93 | 94 | public static function getDir() { |
94 | 95 | static $dir = null; |