summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-11-15 08:44:01 +0000
committerBharat Mediratta <bharat@menalto.com>2008-11-15 08:44:01 +0000
commitdb6061096e23e77c4ea895fa3c1bd20d65c6db4c (patch)
tree68e7becf15c9419e4d712b846d627ebbe118d6fd /themes
parent6dbf5ae172e8336caa0971024ffdfa0148bcf718 (diff)
Item / Owner changes.
* Hardcode the item has_one owner relationship again * Overload User_Model::__get to handle missing owners gracefully * Fix Item_Controller to take the owner_id from the session or from the parent album when adding new albums and photos.
Diffstat (limited to 'themes')
-rw-r--r--themes/default/views/album.html.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/themes/default/views/album.html.php b/themes/default/views/album.html.php
index 08a67b7b..b59dba01 100644
--- a/themes/default/views/album.html.php
+++ b/themes/default/views/album.html.php
@@ -21,11 +21,9 @@
<h2><?= $child->title_edit ?></h2>
<ul class="gMetadata">
<li>Views: 321</li>
-<?
- try {
- echo "<li>" . _("By: ") . '<a href="#">' . $child->owner->name . "</a></li>";
- } catch(Exception $e) {}
-?>
+ <? if ($child->owner): ?>
+ <li><?= _("By: ") ?><a href="#"><?= $child->owner->name ?></a></li>
+ <? endif ?>
</ul>
</li>
<? endforeach ?>