Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use the new helper method

  • Loading branch information...
commit e2c936b2c0d54180e8519d76437f75dc2313eb9b 1 parent 68fe0f5
@vitorpacheco authored
View
2  controllers/albums_controller.php
@@ -106,7 +106,7 @@ public function view($slug = null) {
$this->Session->setFlash(__d('cake_gallery','Invalid album. Please try again.', true));
$this->redirect(array('action' => 'index'));
}
- $this->set('title_for_layout',__d('cake_gallery',"Album", true) . $album['Album']['title']);
+ $this->set('title_for_layout', __d('cake_gallery','Album', true) . $album['Album']['title']);
$this->set(compact('album'));
}
View
7 views/elements/gallery_album.ctp
@@ -21,7 +21,6 @@
<?php else: ?>
<?php __d('cake_gallery','No photos in the album'); ?>
<?php endif;?>
-<?php else: ?>
- [CakeGallery:<?php echo $slug; ?>]
-<?php endif; ?>
-
+<?php else:?>
+ <?php echo $this->CakeGallery->loadGallery($slug);?>
+<?php endif;?>
Please sign in to comment.
Something went wrong with that request. Please try again.