diff --git a/classes/gelato.class.php b/classes/gelato.class.php index 1f8cbd4..bcc6309 100644 --- a/classes/gelato.class.php +++ b/classes/gelato.class.php @@ -120,9 +120,6 @@ class gelato extends Conexion_Mysql { $formatedText .= " \n"; } $formatedText .= "\n"; - // Ugly path fix it ASAP - $formatedText = str_replace("

","", $formatedText); - $formatedText = str_replace("

","", $formatedText); return $formatedText; } diff --git a/index.php b/index.php index 6a408e5..0ab25d6 100644 --- a/index.php +++ b/index.php @@ -89,6 +89,8 @@ $template = new plantillas($conf->template); $strEnd=($conf->urlFriendly) ? "/" : ""; $permalink = $conf->urlGelato.($conf->urlFriendly?"/post/":"/index.php?post=").$register["id_post"].$strEnd; + $conversation = $register["description"]; + $textile = new Textile(); $register["description"] = $textile->TextileThis($register["description"]); @@ -141,7 +143,7 @@ $template = new plantillas($conf->template); break; case "5": $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->mostrarPlantilla(); @@ -187,6 +189,8 @@ $template = new plantillas($conf->template); $strEnd=($conf->urlFriendly) ? "/" : ""; $permalink = $conf->urlGelato.($conf->urlFriendly?"/post/":"/index.php?post=").$register["id_post"].$strEnd; + $conversation = $register["description"]; + $textile = new Textile(); $register["description"] = $textile->TextileThis($register["description"]); @@ -238,7 +242,7 @@ $template = new plantillas($conf->template); break; case "5": $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->mostrarPlantilla();