summaryrefslogtreecommitdiff
path: root/modules/organize/helpers/organize_theme.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-08-28 11:42:54 -0700
committerBharat Mediratta <bharat@menalto.com>2009-08-28 11:42:54 -0700
commit16fc4465d0e773239bfe11681f7303b46e6419f0 (patch)
treefd67e408d9b3a7905553ce220ef948124d29c069 /modules/organize/helpers/organize_theme.php
parentc0c65c6fcc971b1ea9c0afb75854aec502591d56 (diff)
parent430b57578b048366f054743e47de1b66cebb574e (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.php9
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");
+ }
}
}