Fixed bug on URL type post without Title

master
vbracco 2007-09-18 18:05:13 +00:00
parent 199c749069
commit 7598eed6bd
2 changed files with 6 additions and 2 deletions

View File

@ -261,6 +261,7 @@ if ($user->isAdmin()) {
$template->mostrarPlantilla();
break;
case "url":
$input = array("{type}", "{date}", "{id_user}", "{editTitle}", "{editUrl}", "{editBody}");
$output = array("4", $date, $_SESSION['user_id'], $title, $url, $body);
@ -390,6 +391,7 @@ if ($user->isAdmin()) {
$template->mostrarPlantilla();
break;
case "4":
$register["title"] = ($register["title"]=="")? $register["url"] : $register["title"];
$input = array("{Id_Post}", "{Date_Added}", "{Permalink}", "{URL}", "{Name}", "{Description}", "{URL_Tumble}");
$output = array($register["id_post"], $formatedDate, $permalink, $register["url"], $register["title"], $register["description"], $conf->urlGelato);

View File

@ -129,6 +129,7 @@ $template = new plantillas($conf->template);
$template->mostrarPlantilla();
break;
case "4":
$register["title"] = ($register["title"]=="")? $register["url"] : $register["title"];
$input = array("{Date_Added}", "{Permalink}", "{URL}", "{Name}", "{Description}", "{URL_Tumble}");
$output = array($formatedDate, $permalink, $register["url"], $register["title"], $register["description"], $conf->urlGelato);
@ -223,6 +224,7 @@ $template = new plantillas($conf->template);
$template->mostrarPlantilla();
break;
case "4":
$register["title"] = ($register["title"]=="")? $register["url"] : $register["title"];
$input = array("{Date_Added}", "{Permalink}", "{URL}", "{Name}", "{Description}", "{URL_Tumble}");
$output = array($formatedDate, $permalink, $register["url"], $register["title"], $register["description"], $conf->urlGelato);