Compare commits

..

No commits in common. "3e725681410ab9c881d554f2f5d8db72736a08d5" and "91cabf56e70c662de1370c8afc8028b51cb9ed61" have entirely different histories.

3 changed files with 4 additions and 7 deletions

View File

@ -138,14 +138,11 @@ class Theme
// Update session // Update session
if (Session::isValidSession()) { if (Session::isValidSession()) {
$_SESSION['theme'] = $themeName; $_SESSION['user_theme'] = $themeName;
} else { } else {
return false; return false;
} }
// Clear the current theme cache
self::$currentTheme = null;
// Update config file // Update config file
$configFile = __DIR__ . '/../config/theme.php'; $configFile = __DIR__ . '/../config/theme.php';
if (file_exists($configFile) && is_writable($configFile)) { if (file_exists($configFile) && is_writable($configFile)) {
@ -165,8 +162,8 @@ class Theme
self::$currentTheme = $themeName; self::$currentTheme = $themeName;
return true; return true;
} }
return false; return false;
return true;
} }

View File

@ -4,7 +4,7 @@
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
<span class="text-muted"> <span class="text-muted">
&copy; 2024-<?= date('Y') ?> <?= htmlspecialchars($config['site_name'] ?? '') ?> v<?= htmlspecialchars($config['version'] ?? '') ?> &copy; <?= date('Y') ?> <?= htmlspecialchars($config['site_name'] ?? '') ?> v<?= htmlspecialchars($config['version'] ?? '') ?>
</span> </span>
</div> </div>
<div class="col-md-6 text-md-end"> <div class="col-md-6 text-md-end">

View File

@ -4,7 +4,7 @@
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
<span class="text-muted"> <span class="text-muted">
&copy; 2024-<?= date('Y') ?> <?= htmlspecialchars($config['site_name'] ?? '') ?> v<?= htmlspecialchars($config['version'] ?? '') ?> &copy; <?= date('Y') ?> <?= htmlspecialchars($config['site_name'] ?? '') ?> v<?= htmlspecialchars($config['version'] ?? '') ?>
</span> </span>
</div> </div>
<div class="col-md-6 text-md-end"> <div class="col-md-6 text-md-end">