https://www.mediawiki.org/wiki/Special:Code/MediaWiki/103361

Revision: 103361
Author:   raindrift
Date:     2011-11-16 19:46:29 +0000 (Wed, 16 Nov 2011)
Log Message:
-----------
added README, small documentation and whitespace fixes

Modified Paths:
--------------
    trunk/extensions/InteractiveBlockMessage/InteractiveBlockMessage.php
    trunk/extensions/InteractiveBlockMessage/InteractiveBlockMessageHooks.php

Added Paths:
-----------
    trunk/extensions/InteractiveBlockMessage/README

Modified: trunk/extensions/InteractiveBlockMessage/InteractiveBlockMessage.php
===================================================================
--- trunk/extensions/InteractiveBlockMessage/InteractiveBlockMessage.php        
2011-11-16 19:35:18 UTC (rev 103360)
+++ trunk/extensions/InteractiveBlockMessage/InteractiveBlockMessage.php        
2011-11-16 19:46:29 UTC (rev 103361)
@@ -6,7 +6,7 @@
  * @ingroup Extensions
  * @author Petr Bena <[email protected]>
  * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 
2.0 or later
- * @link http://www.mediawiki.org/wiki/Extension:OnlineStatusBar Documentation
+ * @link http://www.mediawiki.org/wiki/Extension:InteractiveBlockMessage 
Documentation
  */
 
 if ( !defined( 'MEDIAWIKI' ) ) {
@@ -30,7 +30,6 @@
 
 $wgExtensionMessagesFiles['InteractiveBlockMessage'] = 
"$dir/InteractiveBlockMessage.i18n.php";
 
-
 $wgHooks['LanguageGetMagic'][] = 'InteractiveBlockMessageHooks::magicWordVar';
 $wgHooks['MagicWordwgVariableIDs'][] = 
'InteractiveBlockMessageHooks::magicWordSet';
 $wgHooks['ParserGetVariableValueSwitch'][] = 
'InteractiveBlockMessageHooks::parserGetVariable';

Modified: 
trunk/extensions/InteractiveBlockMessage/InteractiveBlockMessageHooks.php
===================================================================
--- trunk/extensions/InteractiveBlockMessage/InteractiveBlockMessageHooks.php   
2011-11-16 19:35:18 UTC (rev 103360)
+++ trunk/extensions/InteractiveBlockMessage/InteractiveBlockMessageHooks.php   
2011-11-16 19:46:29 UTC (rev 103361)
@@ -41,8 +41,8 @@
                
                if ( $parser->getTitle()->getNamespace() != NS_USER && 
$parser->getTitle()->getNamespace() != NS_USER_TALK ) {
                        $ret = 'unknown';
-                        return true;
-                }
+                       return true;
+               }
 
                $user = User::newFromName( $parser->getTitle()->getBaseText() 
); 
                if ($user instanceof User) {

Added: trunk/extensions/InteractiveBlockMessage/README
===================================================================
--- trunk/extensions/InteractiveBlockMessage/README                             
(rev 0)
+++ trunk/extensions/InteractiveBlockMessage/README     2011-11-16 19:46:29 UTC 
(rev 103361)
@@ -0,0 +1,12 @@
+InteractiveBlockMessage is an extension for MediaWiki. It creates new
+magic word {{USERBLOCKED}} which, when used in a user's userspace, will
+indicate the blocked status of that user.
+
+To install, add the following to your LocalSettings.php:
+
+require_once( 
"$IP/extensions/InteractiveBlockMessage/InteractiveBlockMessage.php" );
+
+See http://www.mediawiki.org/wiki/Extension:InteractiveBlockMessage for 
further documentation.
+
+@author Petr Bena <[email protected]>
+@license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 
or later


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to