bug fixes
parent
3075f0adfc
commit
e6bb650881
|
|
@ -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>
|
||||||
|
|
|
||||||
4
api.php
4
api.php
|
|
@ -53,6 +53,10 @@ if(!defined('entry')) define('entry',true);
|
||||||
$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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue