diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-08-28 11:42:54 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-08-28 11:42:54 -0700 |
commit | 16fc4465d0e773239bfe11681f7303b46e6419f0 (patch) | |
tree | fd67e408d9b3a7905553ce220ef948124d29c069 /modules/organize/helpers/organize_theme.php | |
parent | c0c65c6fcc971b1ea9c0afb75854aec502591d56 (diff) | |
parent | 430b57578b048366f054743e47de1b66cebb574e (diff) |
Merge branch 'master' of git@github.com:talmdal/gallery3
Diffstat (limited to 'modules/organize/helpers/organize_theme.php')
-rw-r--r-- | modules/organize/helpers/organize_theme.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/organize/helpers/organize_theme.php b/modules/organize/helpers/organize_theme.php index e4feba2b..de812261 100644 --- a/modules/organize/helpers/organize_theme.php +++ b/modules/organize/helpers/organize_theme.php @@ -19,9 +19,10 @@ */ class organize_theme { static function head($theme) { - // @tdo remove the addition css and organize.js (just here to test) - $theme->script("organize_init.js"); - $theme->script("organize.js"); - $theme->css("organize.css"); + $item = $theme->item(); + if ($item && access::can("edit", $item) && $item->is_album()) { + $theme->script("organize.js"); + $theme->css("organize.css"); + } } } |