mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-07 15:40:41 -04:00
Tweak load_themes() to match exactly "/admin" or the "/admin/" prefix,
but not just the "/admin" prefix because that breaks if you add an image like "admin_photostream".
This commit is contained in:
@@ -38,7 +38,8 @@ class theme_Core {
|
||||
if (!(identity::active_user()->admin && $theme_name = $input->get("theme"))) {
|
||||
$theme_name = module::get_var(
|
||||
"gallery",
|
||||
!strncmp($path, "/admin", 6) ? "active_admin_theme" : "active_site_theme");
|
||||
$path == "/admin" || !strncmp($path, "/admin/", 7) ?
|
||||
"active_admin_theme" : "active_site_theme");
|
||||
}
|
||||
$modules = Kohana::config("core.modules");
|
||||
array_unshift($modules, THEMEPATH . $theme_name);
|
||||
|
||||
Reference in New Issue
Block a user