summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2008-11-18 16:26:36 +0000
committerTim Almdal <tnalmdal@shaw.ca>2008-11-18 16:26:36 +0000
commit6f4fae0786676721009205e43796e4e4e4fe0f95 (patch)
tree918d61f2d8776f9a25438a320584eabc35b9faa9 /themes
parentb63ea2cdbf995d4648bc3c4a5f4eb51ed8da3a8d (diff)
Added the is_installed to the module helper and change to photo.html to not try to display a comment if it is not installed
Diffstat (limited to 'themes')
-rw-r--r--themes/default/views/photo.html.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/themes/default/views/photo.html.php b/themes/default/views/photo.html.php
index 8b8f44d4..512c1e17 100644
--- a/themes/default/views/photo.html.php
+++ b/themes/default/views/photo.html.php
@@ -9,5 +9,7 @@
<h1><?= $item->title_edit ?></h1>
<div><?= $item->description_edit ?></div>
- <?= comment::block($theme, true); ?>
+ <? if (module::is_installed("comment")): ?>
+ <?= comment::block($theme, true); ?>
+ <? endif ?>
</div>