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

View File

@ -52,11 +52,15 @@ if(!defined('entry')) define('entry',true);
if ($hasType) {
$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) {
$theme->set("start",$start);
$theme->set("total",$total);
while($post = mysql_fetch_assoc($rs)){
$post['desc'] = util::trimString($post["description"]);
$strEnd = ($conf->urlFriendly) ? "/" : "";