Index: trunk/extensions/WikiTextLoggedInOut/WikiTextLoggedInOut.php |
— | — | @@ -7,10 +7,10 @@ |
8 | 8 | * |
9 | 9 | * @file |
10 | 10 | * @ingroup Extensions |
| 11 | + * @version 1.3 |
11 | 12 | * @author Aaron Wright |
12 | 13 | * @author David Pean |
13 | 14 | * @author Jack Phoenix <jack@countervandalism.net> |
14 | | - * @version 1.0 |
15 | 15 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
16 | 16 | * @link http://www.mediawiki.org/wiki/Extension:WikiTextLoggedInOut Documentation |
17 | 17 | */ |
— | — | @@ -19,7 +19,7 @@ |
20 | 20 | $wgExtensionCredits['parserhook'][] = array( |
21 | 21 | 'path' => __FILE__, |
22 | 22 | 'name' => 'WikiTextLoggedInOut', |
23 | | - 'version' => '1.2', |
| 23 | + 'version' => '1.3', |
24 | 24 | 'author' => array( 'Aaron Wright', 'David Pean', 'Jack Phoenix' ), |
25 | 25 | 'url' => 'http://www.mediawiki.org/wiki/Extension:WikiTextLoggedInOut', |
26 | 26 | 'descriptionmsg' => 'wikitextloggedinout-desc' |
— | — | @@ -29,13 +29,13 @@ |
30 | 30 | $wgExtensionMessagesFiles['WikiTextLoginInOut'] = $dir . 'WikiTextLoggedInOut.i18n.php'; |
31 | 31 | |
32 | 32 | $wgHooks['ParserFirstCallInit'][] = 'efWikiTextLoggedInOut'; |
33 | | -function efWikiTextLoggedIn( &$parser ) { |
34 | | - $parser->setHook( 'loggedin', 'OutputLoggedInText' ); |
35 | | - $parser->setHook( 'loggedout', 'OutputLoggedOutText' ); |
| 33 | +function efWikiTextLoggedInOut( &$parser ) { |
| 34 | + $parser->setHook( 'loggedin', 'outputLoggedInText' ); |
| 35 | + $parser->setHook( 'loggedout', 'outputLoggedOutText' ); |
36 | 36 | return true; |
37 | 37 | } |
38 | 38 | |
39 | | -function OutputLoggedInText( $input, $args, $parser, $frame ) { |
| 39 | +function outputLoggedInText( $input, $args, $parser, $frame ) { |
40 | 40 | global $wgUser; |
41 | 41 | |
42 | 42 | if( $wgUser->isLoggedIn() ) { |
— | — | @@ -45,7 +45,7 @@ |
46 | 46 | return ''; |
47 | 47 | } |
48 | 48 | |
49 | | -function OutputLoggedOutText( $input, $args, $parser, $frame ) { |
| 49 | +function outputLoggedOutText( $input, $args, $parser, $frame ) { |
50 | 50 | global $wgUser; |
51 | 51 | |
52 | 52 | if( !$wgUser->isLoggedIn() ) { |