diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2008-11-08 07:48:36 +0000 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-08 07:48:36 +0000 |
| commit | 418c0aab69a72da512646541be2d88a866cb9fdb (patch) | |
| tree | fea9ea900fbf33d3e94082b901922ad74b832f50 /themes/default | |
| parent | ea7cc4f46edc730ff873c579a6c63490d24496a6 (diff) | |
Create permanent owner_id column in the item table, and use a soft
relationship to bind the two. To do this, I overrode __get in
Item_Model so that $item->owner returns the appropriate User_Model.
Diffstat (limited to 'themes/default')
| -rw-r--r-- | themes/default/views/album.html.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/themes/default/views/album.html.php b/themes/default/views/album.html.php index abac6d3f..8ec225cf 100644 --- a/themes/default/views/album.html.php +++ b/themes/default/views/album.html.php @@ -21,7 +21,9 @@ <h2><?= $child->title ?></h2> <ul class="gMetadata"> <li>Views: 321</li> - <li>By: <a href="#"><?= isset($child->user_id) ? $child->user->name : "anonymous"?></a></li> + <? if ($child->owner): ?> + <li><?= _("By:") ?><a href="#"><?= $child->owner->name ?></a></li> + <? endif ?> </ul> </li> <? endforeach ?> |
