Skip to content

Commit

Permalink
Small change in way template is called on photo page
Browse files Browse the repository at this point in the history
Full page templates are now "templates" and partial pages are "blocks"
  • Loading branch information
jeroenrnl committed Sep 18, 2012
1 parent 4748906 commit d064115
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions php/photo.inc.php
Expand Up @@ -1189,7 +1189,7 @@ function get_time_details() {


$datetime=$this->get_time(); $datetime=$this->get_time();


$tpl=new template("time_details", array( $tpl=new block("time_details", array(
"photo_date" => $this->get("date"), "photo_date" => $this->get("date"),
"photo_time" => $this->get("time"), "photo_time" => $this->get("time"),
"camera_tz" => $tz, "camera_tz" => $tz,
Expand All @@ -1199,7 +1199,7 @@ function get_time_details() {
"calc_date" => $datetime[0], "calc_date" => $datetime[0],
"calc_time" => $datetime[1] "calc_time" => $datetime[1]
)); ));
return $tpl->toString(); return $tpl;
} }


function get_rating_details() { function get_rating_details() {
Expand All @@ -1219,14 +1219,14 @@ function get_rating_details() {
$ratings[]=$row; $ratings[]=$row;
} }


$tpl=new template("rating_details",array( $tpl=new block("rating_details",array(
"rating" => $rating, "rating" => $rating,
"ratings" => $ratings, "ratings" => $ratings,
"photo_id" => $this->get("photo_id") "photo_id" => $this->get("photo_id")
)); ));




return $tpl->toString(); return $tpl;
} }
function get_comments() { function get_comments() {
$sql = "select comment_id from " . DB_PREFIX . "photo_comments where" . $sql = "select comment_id from " . DB_PREFIX . "photo_comments where" .
Expand Down
File renamed without changes.

0 comments on commit d064115

Please sign in to comment.