bug fixes

master
Victor De la Rocha 2009-01-08 07:57:02 +00:00
parent 3075f0adfc
commit e6bb650881
2 changed files with 8 additions and 2 deletions

View File

@ -9,6 +9,7 @@
{/block} {/block}
</feeds> </feeds>
</tumblelog> </tumblelog>
{if $totalRegistros}
<posts start="{start}" total="{total}"> <posts start="{start}" total="{total}">
{block $posts as $post} {block $posts as $post}
{if $post.type=='post'} {if $post.type=='post'}
@ -51,4 +52,5 @@
{/if} {/if}
{/block} {/block}
</posts> </posts>
{/if}
</gelato> </gelato>

View File

@ -52,11 +52,15 @@ if(!defined('entry')) define('entry',true);
if ($hasType) { if ($hasType) {
$postType = type2Number($_GET["type"]); $postType = type2Number($_GET["type"]);
} }
$rs = $tumble->getPosts($total, $start); $rs = $tumble->getPosts($total, $start);
$totalRegistros = $db->contarRegistros();
$theme->set("totalRegistros",$totalRegistros);
if ($db->contarRegistros()>0) { if ($db->contarRegistros()>0) {
$theme->set("start",$start); $theme->set("start",$start);
$theme->set("total",$total); $theme->set("total",$total);
while($post = mysql_fetch_assoc($rs)){ while($post = mysql_fetch_assoc($rs)){
$post['desc'] = util::trimString($post["description"]); $post['desc'] = util::trimString($post["description"]);
$strEnd = ($conf->urlFriendly) ? "/" : ""; $strEnd = ($conf->urlFriendly) ? "/" : "";