Fixed bug on URL type post without Title
parent
199c749069
commit
7598eed6bd
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -129,7 +129,8 @@ $template = new plantillas($conf->template);
|
|||
$template->mostrarPlantilla();
|
||||
break;
|
||||
case "4":
|
||||
$input = array("{Date_Added}", "{Permalink}", "{URL}", "{Name}", "{Description}", "{URL_Tumble}");
|
||||
$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);
|
||||
|
||||
$template->cargarPlantilla($input, $output, "template_url");
|
||||
|
|
@ -223,7 +224,8 @@ $template = new plantillas($conf->template);
|
|||
$template->mostrarPlantilla();
|
||||
break;
|
||||
case "4":
|
||||
$input = array("{Date_Added}", "{Permalink}", "{URL}", "{Name}", "{Description}", "{URL_Tumble}");
|
||||
$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);
|
||||
|
||||
$template->cargarPlantilla($input, $output, "template_url");
|
||||
|
|
|
|||
Loading…
Reference in New Issue