💩 Automaticallly use koblog admin theme instead of booty

This commit is contained in:
Kazhnuz 2025-09-09 21:09:05 +02:00
parent 1fe3640c28
commit 64f7d1cdd1

View file

@ -313,7 +313,9 @@ class Site extends dbJSON
// Returns the admin theme name
public function adminTheme()
{
return $this->getField('adminTheme');
// HACK: Automatically replace the old theme "booty" by "koblog" to ensure
// compatibility with old installs
return ($this->getField('adminTheme') == "booty") ? "koblog" : $this->getField('adminTheme');
}
// Returns the footer text