|
@@ -116,11 +116,13 @@ $template = new plantillas($conf->template);
|
116
|
116
|
|
117
|
117
|
$register["title"] = stripslashes($register["title"]);
|
118
|
118
|
$register["description"] = stripslashes($register["description"]);
|
119
|
|
-
|
|
119
|
+
|
|
120
|
+ $comment = new comments();
|
|
121
|
+
|
120
|
122
|
switch ($tumble->getType($register["id_post"])) {
|
121
|
123
|
case "1":
|
122
|
|
- $input = array("{Date_Added}", "{Permalink}", "{Title}", "{Body}", "{URL_Tumble}");
|
123
|
|
- $output = array($formatedDate, $permalink, $register["title"], $register["description"], $conf->urlGelato);
|
|
124
|
+ $input = array("{Date_Added}", "{Permalink}", "{Title}", "{Body}", "{URL_Tumble}", "{Comments_Number}");
|
|
125
|
+ $output = array($formatedDate, $permalink, $register["title"], $register["description"], $conf->urlGelato, $comment->countComments($register["id_post"]));
|
124
|
126
|
|
125
|
127
|
$template->cargarPlantilla($input, $output, "template_regular_post");
|
126
|
128
|
$template->mostrarPlantilla();
|