r103361 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103360‎ | r103361 | r103362 >
Date:19:46, 16 November 2011
Author:raindrift
Status:deferred
Tags:
Comment:
added README, small documentation and whitespace fixes
Modified paths:
  • /trunk/extensions/InteractiveBlockMessage/InteractiveBlockMessage.php (modified) (history)
  • /trunk/extensions/InteractiveBlockMessage/InteractiveBlockMessageHooks.php (modified) (history)
  • /trunk/extensions/InteractiveBlockMessage/README (added) (history)

Diff [purge]

Index: trunk/extensions/InteractiveBlockMessage/InteractiveBlockMessage.php
@@ -6,7 +6,7 @@
77 * @ingroup Extensions
88 * @author Petr Bena <benapetr@gmail.com>
99 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
10 - * @link http://www.mediawiki.org/wiki/Extension:OnlineStatusBar Documentation
 10+ * @link http://www.mediawiki.org/wiki/Extension:InteractiveBlockMessage Documentation
1111 */
1212
1313 if ( !defined( 'MEDIAWIKI' ) ) {
@@ -30,7 +30,6 @@
3131
3232 $wgExtensionMessagesFiles['InteractiveBlockMessage'] = "$dir/InteractiveBlockMessage.i18n.php";
3333
34 -
3534 $wgHooks['LanguageGetMagic'][] = 'InteractiveBlockMessageHooks::magicWordVar';
3635 $wgHooks['MagicWordwgVariableIDs'][] = 'InteractiveBlockMessageHooks::magicWordSet';
3736 $wgHooks['ParserGetVariableValueSwitch'][] = 'InteractiveBlockMessageHooks::parserGetVariable';
Index: trunk/extensions/InteractiveBlockMessage/InteractiveBlockMessageHooks.php
@@ -41,8 +41,8 @@
4242
4343 if ( $parser->getTitle()->getNamespace() != NS_USER && $parser->getTitle()->getNamespace() != NS_USER_TALK ) {
4444 $ret = 'unknown';
45 - return true;
46 - }
 45+ return true;
 46+ }
4747
4848 $user = User::newFromName( $parser->getTitle()->getBaseText() );
4949 if ($user instanceof User) {
Index: trunk/extensions/InteractiveBlockMessage/README
@@ -0,0 +1,12 @@
 2+InteractiveBlockMessage is an extension for MediaWiki. It creates new
 3+magic word {{USERBLOCKED}} which, when used in a user's userspace, will
 4+indicate the blocked status of that user.
 5+
 6+To install, add the following to your LocalSettings.php:
 7+
 8+require_once( "$IP/extensions/InteractiveBlockMessage/InteractiveBlockMessage.php" );
 9+
 10+See http://www.mediawiki.org/wiki/Extension:InteractiveBlockMessage for further documentation.
 11+
 12+@author Petr Bena <benapetr@gmail.com>
 13+@license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later

Status & tagging log