Use $theme->script() method to render module javascript files

This commit is contained in:
Tim Almdal
2009-06-28 16:50:55 -07:00
parent aa31e1f009
commit 5e83ebd6d0
6 changed files with 13 additions and 16 deletions

View File

@@ -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);
}
}