[ProfileColor] Added profile color css

This commit is contained in:
Daniel
2020-12-19 20:52:36 +00:00
committed by Hugo Sales
parent d17582094d
commit 15454cab7f
4 changed files with 21 additions and 18 deletions

View File

@@ -67,8 +67,6 @@ class ProfileColor extends Module
$color = DB::find('profile_color', ['gsactor_id' => Common::user()->getId()]);
if ($color != null) {
$vars['profile_extras'][] = ['name' => 'profilecolor', 'vars' => ['color' => $color->getColor()]];
} else {
$vars['profile_extras'][] = ['name' => 'profilecolor', 'vars' => []];
}
}
return Event::next;
@@ -83,8 +81,7 @@ class ProfileColor extends Module
*/
public function onStartShowStyles(array &$styles): bool
{
//$styles[] = 'profilecolor/profilecolor.css';
$styles[] = 'profilecolor/profilecolor.css';
return Event::next;
}
}