|
@@ -107,8 +107,8 @@ $theme = new themes;
|
107
|
107
|
while($register = mysql_fetch_assoc($rs)) {
|
108
|
108
|
$formatedDate = gmdate("M d", strtotime($register["date"])+transform_offset($conf->offsetTime));
|
109
|
109
|
if ( $dateTmp != null && $formatedDate == $dateTmp ) { $formatedDate = ""; } else { $dateTmp = $formatedDate; }
|
110
|
|
- $strEnd=($conf->urlFriendly) ? "/" : "";
|
111
|
|
- $permalink = $conf->urlGelato.($conf->urlFriendly?"/post/":"/index.php?post=").$register["id_post"].$strEnd;
|
|
110
|
+
|
|
111
|
+ $permalink = $tumble->getPermalink($register["id_post"]);
|
112
|
112
|
|
113
|
113
|
$conversation = $register["description"];
|
114
|
114
|
|
|
@@ -204,8 +204,7 @@ $theme = new themes;
|
204
|
204
|
$register = $tumble->getPost($id_post);
|
205
|
205
|
|
206
|
206
|
$formatedDate = gmdate("M d", strtotime($register["date"])+transform_offset($conf->offsetTime));
|
207
|
|
- $strEnd=($conf->urlFriendly) ? "/" : "";
|
208
|
|
- $permalink = $conf->urlGelato.($conf->urlFriendly?"/post/":"/index.php?post=").$register["id_post"].$strEnd;
|
|
207
|
+ $permalink = $tumble->getPermalink($register["id_post"]);
|
209
|
208
|
|
210
|
209
|
$conversation = $register["description"];
|
211
|
210
|
|