summaryrefslogtreecommitdiff
path: root/books.php
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2016-02-07 17:44:38 +0000
committerlsces <lester@lsces.co.uk>2016-02-07 17:44:38 +0000
commit48d38bcee6e51e54102c85cabb2f5b94a819a03c (patch)
tree3ad8d7370c6a0ffc301b407f56270e1bb0b4c89f /books.php
parent5f2e82a1fb1803fcc79fd31bd0f318f3661d639c (diff)
downloadwiki-48d38bcee6e51e54102c85cabb2f5b94a819a03c.tar.gz
wiki-48d38bcee6e51e54102c85cabb2f5b94a819a03c.tar.bz2
wiki-48d38bcee6e51e54102c85cabb2f5b94a819a03c.zip
Move from Smarty2 to Smarty3 function style
Diffstat (limited to 'books.php')
-rw-r--r--books.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/books.php b/books.php
index 7dce586..66d848a 100644
--- a/books.php
+++ b/books.php
@@ -27,7 +27,7 @@ $listHash['content_type_guid'] = BITBOOK_CONTENT_TYPE_GUID;
$channels = $book->getList( $listHash );
$cant_pages = ceil($channels["cant"] / $listHash['max_records']);
-$gBitSmarty->assign_by_ref('cant_pages', $cant_pages);
+$gBitSmarty->assignByRef('cant_pages', $cant_pages);
$gBitSmarty->assign('actual_page', 1 + ($listHash['offset'] / $listHash['max_records']));
if ($channels["cant"] > ($listHash['offset'] + $listHash['max_records'])) {
@@ -43,7 +43,7 @@ if ($listHash['offset'] > 0) {
$gBitSmarty->assign('prev_offset', -1);
}
-$gBitSmarty->assign_by_ref('channels', $channels["data"]);
+$gBitSmarty->assignByRef('channels', $channels["data"]);
$gBitSystem->display( 'bitpackage:wiki/list_books.tpl', NULL, array( 'display_mode' => 'display' ));