summaryrefslogtreecommitdiff
path: root/modules/organize/helpers/organize_theme.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-08-27 16:15:01 -0700
committerBharat Mediratta <bharat@menalto.com>2009-08-27 16:15:01 -0700
commit8d2cd12c58508c58520d4df2875a3f7974343d8f (patch)
treebc2c99a5f493d365d0306c855878bad319cc664f /modules/organize/helpers/organize_theme.php
parente0e430bd84d8c82eb425c0bc828dae2b9c0d86be (diff)
parentbfc64685e4ae4bbd2c0308e9520194215ab51469 (diff)
Merge branch 'master' of git@github.com:talmdal/gallery3 into talmdal_branch
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");
+ }
}
}