Fixed ISSUE 55, patch by dotism

master
pecesama 2007-11-05 23:18:43 +00:00
parent b19b0f5d72
commit 9b53394db6
2 changed files with 6 additions and 5 deletions

View File

@ -120,9 +120,6 @@ class gelato extends Conexion_Mysql {
$formatedText .= " </li>\n"; $formatedText .= " </li>\n";
} }
$formatedText .= "</ul>\n"; $formatedText .= "</ul>\n";
// Ugly path fix it ASAP
$formatedText = str_replace("<p>","", $formatedText);
$formatedText = str_replace("</p>","", $formatedText);
return $formatedText; return $formatedText;
} }

View File

@ -89,6 +89,8 @@ $template = new plantillas($conf->template);
$strEnd=($conf->urlFriendly) ? "/" : ""; $strEnd=($conf->urlFriendly) ? "/" : "";
$permalink = $conf->urlGelato.($conf->urlFriendly?"/post/":"/index.php?post=").$register["id_post"].$strEnd; $permalink = $conf->urlGelato.($conf->urlFriendly?"/post/":"/index.php?post=").$register["id_post"].$strEnd;
$conversation = $register["description"];
$textile = new Textile(); $textile = new Textile();
$register["description"] = $textile->TextileThis($register["description"]); $register["description"] = $textile->TextileThis($register["description"]);
@ -141,7 +143,7 @@ $template = new plantillas($conf->template);
break; break;
case "5": case "5":
$input = array("{Date_Added}", "{Permalink}", "{Title}", "{Conversation}", "{URL_Tumble}"); $input = array("{Date_Added}", "{Permalink}", "{Title}", "{Conversation}", "{URL_Tumble}");
$output = array($formatedDate, $permalink, $register["title"], $tumble->formatConversation($register["description"]), $conf->urlGelato); $output = array($formatedDate, $permalink, $register["title"], $tumble->formatConversation($conversation), $conf->urlGelato);
$template->cargarPlantilla($input, $output, "template_conversation"); $template->cargarPlantilla($input, $output, "template_conversation");
$template->mostrarPlantilla(); $template->mostrarPlantilla();
@ -187,6 +189,8 @@ $template = new plantillas($conf->template);
$strEnd=($conf->urlFriendly) ? "/" : ""; $strEnd=($conf->urlFriendly) ? "/" : "";
$permalink = $conf->urlGelato.($conf->urlFriendly?"/post/":"/index.php?post=").$register["id_post"].$strEnd; $permalink = $conf->urlGelato.($conf->urlFriendly?"/post/":"/index.php?post=").$register["id_post"].$strEnd;
$conversation = $register["description"];
$textile = new Textile(); $textile = new Textile();
$register["description"] = $textile->TextileThis($register["description"]); $register["description"] = $textile->TextileThis($register["description"]);
@ -238,7 +242,7 @@ $template = new plantillas($conf->template);
break; break;
case "5": case "5":
$input = array("{Date_Added}", "{Permalink}", "{Title}", "{Conversation}", "{URL_Tumble}"); $input = array("{Date_Added}", "{Permalink}", "{Title}", "{Conversation}", "{URL_Tumble}");
$output = array($formatedDate, $permalink, $register["title"], $tumble->formatConversation($register["description"]), $conf->urlGelato); $output = array($formatedDate, $permalink, $register["title"], $tumble->formatConversation($conversation), $conf->urlGelato);
$template->cargarPlantilla($input, $output, "template_conversation"); $template->cargarPlantilla($input, $output, "template_conversation");
$template->mostrarPlantilla(); $template->mostrarPlantilla();