Permalink
Browse files

Small change in way template is called on photo page

Full page templates are now "templates" and partial pages are "blocks"
  • Loading branch information...
1 parent 4748906 commit d064115077156252472cd08187ab239405cc0d19 @jeroenrnl committed Sep 18, 2012
View
@@ -1189,7 +1189,7 @@ function get_time_details() {
$datetime=$this->get_time();
- $tpl=new template("time_details", array(
+ $tpl=new block("time_details", array(
"photo_date" => $this->get("date"),
"photo_time" => $this->get("time"),
"camera_tz" => $tz,
@@ -1199,7 +1199,7 @@ function get_time_details() {
"calc_date" => $datetime[0],
"calc_time" => $datetime[1]
));
- return $tpl->toString();
+ return $tpl;
}
function get_rating_details() {
@@ -1219,14 +1219,14 @@ function get_rating_details() {
$ratings[]=$row;
}
- $tpl=new template("rating_details",array(
+ $tpl=new block("rating_details",array(
"rating" => $rating,
"ratings" => $ratings,
"photo_id" => $this->get("photo_id")
));
- return $tpl->toString();
+ return $tpl;
}
function get_comments() {
$sql = "select comment_id from " . DB_PREFIX . "photo_comments where" .

0 comments on commit d064115

Please sign in to comment.