r102142 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102141‎ | r102142 | r102143 >
Date:02:23, 6 November 2011
Author:danwe
Status:deferred
Tags:
Comment:
some minor comments cleanup done
Modified paths:
  • /trunk/extensions/RegexFun/RegexFun.php (modified) (history)

Diff [purge]

Index: trunk/extensions/RegexFun/RegexFun.php
@@ -4,15 +4,13 @@
55 * 'Regex Fun' is a MediaWiki extension which adds parser functions for performing regular
66 * expression searches and replacements.
77 *
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
911 *
1012 * @version: 1.0.1
1113 * @license: ISC license
1214 * @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
1715 *
1816 * @file RegexFun.php
1917 * @ingroup RegexFun
@@ -32,9 +30,11 @@
3331 'url' => 'http://www.mediawiki.org/wiki/Extension:Regex_Fun',
3432 );
3533
 34+// language files:
3635 $wgExtensionMessagesFiles['RegexFun' ] = ExtRegexFun::getDir() . '/RegexFun.i18n.php';
3736 $wgExtensionMessagesFiles['RegexFunMagic'] = ExtRegexFun::getDir() . '/RegexFun.i18n.magic.php';
3837
 38+// hooks registration:
3939 $wgHooks['ParserFirstCallInit'][] = 'ExtRegexFun::init';
4040 $wgHooks['ParserClearState' ][] = 'ExtRegexFun::onParserClearState';
4141 $wgHooks['ParserLimitReport' ][] = 'ExtRegexFun::onParserLimitReport';
@@ -42,6 +42,7 @@
4343 // Include the settings file:
4444 require_once ExtRegexFun::getDir() . '/RegexFun_Settings.php';
4545
 46+
4647 /**
4748 * Extension class with all the regex functions functionality
4849 *
@@ -50,7 +51,7 @@
5152 class ExtRegexFun {
5253
5354 /**
54 - * Version of the RegexFun extension.
 55+ * Version of the 'RegexFun' extension.
5556 *
5657 * @since 1.0
5758 *
@@ -87,7 +88,7 @@
8889 *
8990 * @since 1.0
9091 *
91 - * @return boolean
 92+ * @return string
9293 */
9394 public static function getDir() {
9495 static $dir = null;

Status & tagging log