diff options
author | Jozef Selesi <jozefs@users.sourceforge.net> | 2008-11-19 00:12:25 +0000 |
---|---|---|
committer | Jozef Selesi <jozefs@users.sourceforge.net> | 2008-11-19 00:12:25 +0000 |
commit | b2772f5a050351129a64b966b127e39cf76c80b5 (patch) | |
tree | a0a7704bdd944d45b09a8959ab3c60c91f31bab1 /themes | |
parent | 1992343c2e1f2df892f39f971ae629edc59c33d0 (diff) |
* Renamed the album, item and photo controllers to albums, items and photos in order to follow the convention that controllers that refer to a collection of resources have plural names.
* Added a bug workaround to routes.php
Diffstat (limited to 'themes')
-rw-r--r-- | themes/default/views/album.html.php | 2 | ||||
-rw-r--r-- | themes/default/views/header.html.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/themes/default/views/album.html.php b/themes/default/views/album.html.php index b2617998..18c53d46 100644 --- a/themes/default/views/album.html.php +++ b/themes/default/views/album.html.php @@ -12,7 +12,7 @@ <? $album_class = "gAlbum "; ?> <? endif ?> <li class="gItem <?= $album_class ?>"> - <a href="<?= url::site("{$child->type}/{$child->id}") ?>"> + <a href="<?= url::site("{$child->type}s/{$child->id}") ?>"> <img id="gPhotoID-<?= $child->id ?>" class="gThumbnail" alt="photo" src="<?= $child->thumbnail_url() ?>" width="<?= $child->thumbnail_width ?>" diff --git a/themes/default/views/header.html.php b/themes/default/views/header.html.php index 03d4357c..1a6a10e8 100644 --- a/themes/default/views/header.html.php +++ b/themes/default/views/header.html.php @@ -25,7 +25,7 @@ <ul id="gSiteMenu"> <li><a href="<?= url::base() ?>"><?= _("HOME") ?></a></li> - <li><a class="active" href="<?= url::site("album/1") ?>"><?= _("BROWSE") ?></a></li> + <li><a class="active" href="<?= url::site("albums/1") ?>"><?= _("BROWSE") ?></a></li> <li><a href="#"><?= _("UPLOAD") ?></a></li> <li><a href="#"><?= _("MY GALLERY") ?></a></li> <li><a href="#"><?= _("ADMIN") ?></a></li> @@ -40,7 +40,7 @@ <ul id="gBreadcrumbs"> <? foreach ($parents as $parent): ?> - <li><a href="<?= url::site("album/{$parent->id}") ?>"><?= $parent->title_edit ?></a></li> + <li><a href="<?= url::site("albums/{$parent->id}") ?>"><?= $parent->title_edit ?></a></li> <? endforeach ?> <li class="active"><?= $item->title_edit ?></li> </ul> |