summaryrefslogtreecommitdiff
path: root/modules/user/helpers/user_theme.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-06-28 16:50:55 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-06-28 16:50:55 -0700
commit5e83ebd6d0e1eccb1a865dc6c5fe2ef712bd421b (patch)
tree6da4076d1890e11ce489c967f5f2a4168bee34e7 /modules/user/helpers/user_theme.php
parentaa31e1f0090522c3cfb3a44b947ad8c33a275979 (diff)
Use $theme->script() method to render module javascript files
Diffstat (limited to 'modules/user/helpers/user_theme.php')
-rw-r--r--modules/user/helpers/user_theme.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/user/helpers/user_theme.php b/modules/user/helpers/user_theme.php
index 2a4a343a..ad9d4c63 100644
--- a/modules/user/helpers/user_theme.php
+++ b/modules/user/helpers/user_theme.php
@@ -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);
}
}