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

div bug

parent 1f0a3132
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
A small mediawiki extension to have a variable to know if the user is connected or not.
Version 0.4
Version 0.4.1
Mathieu Loiseau
This is free software licensed under the GNU General Public License. Please
......
{
"name": "Connected",
"author": "Mathieu Loiseau",
"version": "0.4",
"version": "0.4.1",
"url": "https://gitlab.liris.cnrs.fr/mloiseau/mw_connected",
"license-name": "GPL-2.0-or-later",
"descriptionmsg": "connected-desc",
......
......@@ -52,13 +52,13 @@ class ConnectedHooks {
if (self::is_registered()) {
$output = $ifLoggedIn;
if (($isDiv == '') && (self::$privateCSSClass != '')){
$output = "<div class='".self::$privateCSSClass."'>".$output."</div>";
$output = "<div class='".self::$privateCSSClass."'>\n".$output."\n</div>";
}
}
else{
$output = $ifNot;
if (($isDiv == '') && (self::$publicCSSClass != '')){
$output = "<div class='".self::$publicCSSClass."'>".$output."</div>";
$output = "<div class='".self::$publicCSSClass."'>\n".$output."\n</div>";
}
}
return [$output, 'noparse' => false ];
......
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