summaryrefslogtreecommitdiff
path: root/modules/tag
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2009-06-28 17:57:23 -0600
committerChad Kieffer <ckieffer@gmail.com>2009-06-28 17:57:23 -0600
commitbf79d4372cbaac63f4fee55dbba58bc19f52bc14 (patch)
treed648c5d7d455da63b36f795f010cc94d55fe3ee5 /modules/tag
parent2b804ebdcea2127ca481ae3fb25a33a3bc5a78c3 (diff)
parentce6d453b3f32af98e13b62fe10b62173c59bde44 (diff)
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/tag')
-rw-r--r--modules/tag/helpers/tag_theme.php7
-rw-r--r--modules/tag/views/admin_tags.html.php1
2 files changed, 5 insertions, 3 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) {
diff --git a/modules/tag/views/admin_tags.html.php b/modules/tag/views/admin_tags.html.php
index 21661c48..7d201da7 100644
--- a/modules/tag/views/admin_tags.html.php
+++ b/modules/tag/views/admin_tags.html.php
@@ -1,5 +1,4 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
-<script src="<?= url::file("modules/tag/js/tag.js") ?>" type="text/javascript"></script>
<script>
var TAG_RENAME_URL = "<?= url::site("admin/tags/rename/__ID__") ?>";
$("document").ready(function() {