summaryrefslogtreecommitdiff
path: root/core/controllers/photo.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/controllers/photo.php')
-rw-r--r--core/controllers/photo.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/controllers/photo.php b/core/controllers/photo.php
index 4c0ab975..6f746e65 100644
--- a/core/controllers/photo.php
+++ b/core/controllers/photo.php
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class Photo_Controller extends Template_Controller {
- public $template = "photo.html";
+ public $template = "page.html";
public function View($id) {
$item = ORM::factory("item")->where("id", $id)->find();
@@ -26,6 +26,8 @@ class Photo_Controller extends Template_Controller {
return Kohana::show_404();
}
+ $this->template->content = new View("photo.html");
+
$this->template->set_global('item', $item);
$this->template->set_global('children', $item->children());
$this->template->set_global('parents', $item->parents());