mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-10 17:29:18 -04:00
Fix Admin_View to look for the the variable active_admin_theme instead of active_site_theme. In addition check for the existence of THEMEPATH . instead of theme/
This commit is contained in:
@@ -27,9 +27,9 @@ class Admin_View_Core extends Gallery_View {
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($name) {
|
||||
$theme_name = module::get_var("gallery", "active_site_theme");
|
||||
if (!file_exists("themes/$theme_name")) {
|
||||
module::set_var("gallery", "active_site_theme", "admin_wind");
|
||||
$theme_name = module::get_var("gallery", "active_admin_theme");
|
||||
if (!file_exists(THEMEPATH . $theme_name)) {
|
||||
module::set_var("gallery", "active_admin_theme", "admin_wind");
|
||||
theme::load_themes();
|
||||
Kohana::log("error", "Unable to locate theme '$theme_name', switching to default theme.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user