summaryrefslogtreecommitdiff
path: root/modules/tag/helpers
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/tag/helpers
parentaa31e1f0090522c3cfb3a44b947ad8c33a275979 (diff)
Use $theme->script() method to render module javascript files
Diffstat (limited to 'modules/tag/helpers')
-rw-r--r--modules/tag/helpers/tag_theme.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/tag/helpers/tag_theme.php b/modules/tag/helpers/tag_theme.php
index a32d71b6..b48ad178 100644
--- a/modules/tag/helpers/tag_theme.php
+++ b/modules/tag/helpers/tag_theme.php
@@ -19,8 +19,11 @@
*/
class tag_theme_Core {
static function head($theme) {
- $url = url::file("modules/tag/js/tag.js");
- return "<script src=\"$url\" type=\"text/javascript\"></script>";
+ $theme->script("modules/tag/js/tag.js");
+ }
+
+ static function admin_head($theme) {
+ $theme->script("modules/tag/js/tag.js");
}
static function sidebar_blocks($theme) {