diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-26 14:37:15 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-26 14:37:15 -0700 |
commit | 4cec0201637d21f8e88c264bb1befff4e891ce3e (patch) | |
tree | eea776e6f88e02bf0ecae282ea4c617dca44900b /modules/comment | |
parent | 57bb1101473365d76420203dc4c0a9e391363475 (diff) |
Create a theme_view function script which allows modules in the head or admin_head functions to specify javascript files that are required for this page.
In this commit, these script files are expressed at the end of the head or admin_head calls and appended to the beginning of the block stack. In a future commit these will be combined and gzipped for download.
Diffstat (limited to 'modules/comment')
-rw-r--r-- | modules/comment/helpers/comment_theme.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/comment/helpers/comment_theme.php b/modules/comment/helpers/comment_theme.php index d9f1acf4..89b2f57c 100644 --- a/modules/comment/helpers/comment_theme.php +++ b/modules/comment/helpers/comment_theme.php @@ -19,8 +19,8 @@ */ class comment_theme_Core { static function head($theme) { - $url = url::file("modules/comment/js/comment.js"); - return "<script src=\"$url\" type=\"text/javascript\"></script>\n"; + $theme->script("modules/comment/js/comment.js"); + return ""; } static function photo_bottom($theme) { |