Index: trunk/extensions/InteractiveBlockMessage/InteractiveBlockMessage.php |
— | — | @@ -6,7 +6,7 @@ |
7 | 7 | * @ingroup Extensions |
8 | 8 | * @author Petr Bena <benapetr@gmail.com> |
9 | 9 | * @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 |
11 | 11 | */ |
12 | 12 | |
13 | 13 | if ( !defined( 'MEDIAWIKI' ) ) { |
— | — | @@ -30,7 +30,6 @@ |
31 | 31 | |
32 | 32 | $wgExtensionMessagesFiles['InteractiveBlockMessage'] = "$dir/InteractiveBlockMessage.i18n.php"; |
33 | 33 | |
34 | | - |
35 | 34 | $wgHooks['LanguageGetMagic'][] = 'InteractiveBlockMessageHooks::magicWordVar'; |
36 | 35 | $wgHooks['MagicWordwgVariableIDs'][] = 'InteractiveBlockMessageHooks::magicWordSet'; |
37 | 36 | $wgHooks['ParserGetVariableValueSwitch'][] = 'InteractiveBlockMessageHooks::parserGetVariable'; |
Index: trunk/extensions/InteractiveBlockMessage/InteractiveBlockMessageHooks.php |
— | — | @@ -41,8 +41,8 @@ |
42 | 42 | |
43 | 43 | if ( $parser->getTitle()->getNamespace() != NS_USER && $parser->getTitle()->getNamespace() != NS_USER_TALK ) { |
44 | 44 | $ret = 'unknown'; |
45 | | - return true; |
46 | | - } |
| 45 | + return true; |
| 46 | + } |
47 | 47 | |
48 | 48 | $user = User::newFromName( $parser->getTitle()->getBaseText() ); |
49 | 49 | 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 |