bug fixes
parent
3075f0adfc
commit
e6bb650881
|
|
@ -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>
|
||||
|
|
|
|||
4
api.php
4
api.php
|
|
@ -53,6 +53,10 @@ if(!defined('entry')) define('entry',true);
|
|||
$postType = type2Number($_GET["type"]);
|
||||
}
|
||||
$rs = $tumble->getPosts($total, $start);
|
||||
|
||||
$totalRegistros = $db->contarRegistros();
|
||||
$theme->set("totalRegistros",$totalRegistros);
|
||||
|
||||
if ($db->contarRegistros()>0) {
|
||||
$theme->set("start",$start);
|
||||
$theme->set("total",$total);
|
||||
|
|
|
|||
Loading…
Reference in New Issue