mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-16 23:19:53 -04:00
Use $theme->script() method to render module javascript files
This commit is contained in:
@@ -25,11 +25,8 @@ class user_theme_Core {
|
||||
}
|
||||
|
||||
static function admin_head($theme) {
|
||||
$head = array();
|
||||
if (strpos(Router::$current_uri, "admin/users") !== false) {
|
||||
$head[] = html::script("lib/gallery.panel.js");
|
||||
$theme->script("lib/gallery.panel.js");
|
||||
}
|
||||
|
||||
return implode("\n", $head);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user