diff options
Diffstat (limited to 'modules/user/helpers/user_block.php')
-rw-r--r-- | modules/user/helpers/user_block.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/user/helpers/user_block.php b/modules/user/helpers/user_block.php index 51d4908d..5e406fef 100644 --- a/modules/user/helpers/user_block.php +++ b/modules/user/helpers/user_block.php @@ -19,14 +19,12 @@ */ class user_block_Core { public static function head($theme) { - $url = url::file("modules/user/js/user.js"); - $script[] = "<script src=\"$url\" type=\"text/javascript\"></script>"; + // @todo: move this into the theme $user = user::active(); if (!user::active()->guest) { $url = url::file("lib/jquery.jeditable.js"); - $script[] = "<script src=\"$url\" type=\"text/javascript\"></script>"; + return "<script src=\"$url\" type=\"text/javascript\"></script>"; } - return implode("\n", $script); } public static function header_top($theme) { |