Skip to content
Snippets Groups Projects
Commit 2a510adc authored by Mathieu Loiseau's avatar Mathieu Loiseau
Browse files

marche presque

parent f7e30551
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
"license-name": "GPL-2.0-or-later",
"type": "parserhook",
"AutoloadClasses": {
"ExampleExtensionHooks": "src/Connected.php"
"ConnectedHooks": "src/Connected.php"
},
"ExtensionMessagesFiles": {
"ExampleExtensionMagic": "Connected.i18n.magic.php"
......
......@@ -19,8 +19,6 @@ class ConnectedHooks {
public static function ifConnectedRender( Parser $parser, $ifLoggedIn = '', $ifNot = '') {
// The input parameters are wikitext with templates expanded.
// The output should be wikitext too.
$output = "ok";/**/
/*
global $wgUser;
if($wgUser->isSafeToLoad()){
if ( $wgUser->isLoggedIn() ) {
......@@ -29,8 +27,8 @@ class ConnectedHooks {
else{
$output = $ifNot;
}
}*/
return $output;
}
return [ $output, 'noparse' => false ];
}
}
/* Removed Hooks
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment