diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-15 08:44:01 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-15 08:44:01 +0000 |
commit | db6061096e23e77c4ea895fa3c1bd20d65c6db4c (patch) | |
tree | 68e7becf15c9419e4d712b846d627ebbe118d6fd /themes/default | |
parent | 6dbf5ae172e8336caa0971024ffdfa0148bcf718 (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/default')
-rw-r--r-- | themes/default/views/album.html.php | 8 |
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 ?> |