diff --git a/php/photo.inc.php b/php/photo.inc.php index 60669cc..a8a6365 100644 --- a/php/photo.inc.php +++ b/php/photo.inc.php @@ -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" . diff --git a/php/templates/default/rating_details.tpl.php b/php/templates/default/blocks/rating_details.tpl.php similarity index 100% rename from php/templates/default/rating_details.tpl.php rename to php/templates/default/blocks/rating_details.tpl.php diff --git a/php/templates/default/time_details.tpl.php b/php/templates/default/blocks/time_details.tpl.php similarity index 100% rename from php/templates/default/time_details.tpl.php rename to php/templates/default/blocks/time_details.tpl.php