|
@@ -365,8 +365,8 @@ if ($user->isAuthenticated()) {
|
365
|
365
|
if ($tumble->contarRegistros()>0) {
|
366
|
366
|
while($register = mysql_fetch_array($rs)) {
|
367
|
367
|
$formatedDate = gmdate("M d", strtotime($register["date"])+transform_offset($conf->offsetTime));
|
368
|
|
- $permalink = $conf->urlGelato."/index.php/post/".$register["id_post"]."/";
|
369
|
|
-
|
|
368
|
+ $strEnd=($conf->urlFriendly) ? "/" : "";
|
|
369
|
+ $permalink = $conf->urlGelato.($conf->urlFriendly?"/post/":"/index.php?post=").$register["id_post"].$strEnd;
|
370
|
370
|
$register["title"] = stripslashes($register["title"]);
|
371
|
371
|
$register["description"] = stripslashes($register["description"]);
|
372
|
372
|
|