summaryrefslogtreecommitdiff
path: root/stats.php
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2016-02-07 17:23:09 +0000
committerlsces <lester@lsces.co.uk>2016-02-07 17:23:09 +0000
commit440dd66a18d5f3f58c20f297e5c7d7be1741c77b (patch)
tree021f4095a4292527b62432fa2a9c075b7702abd2 /stats.php
parentefecaa5e52f1b7f9e09b840c261ccc763a455689 (diff)
downloadsearch-440dd66a18d5f3f58c20f297e5c7d7be1741c77b.tar.gz
search-440dd66a18d5f3f58c20f297e5c7d7be1741c77b.tar.bz2
search-440dd66a18d5f3f58c20f297e5c7d7be1741c77b.zip
Move from Smarty2 to Smarty3 function style
Diffstat (limited to 'stats.php')
-rw-r--r--stats.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/stats.php b/stats.php
index 1d6b253..683fb16 100644
--- a/stats.php
+++ b/stats.php
@@ -43,7 +43,7 @@ if (isset($_REQUEST['page'])) {
$page = &$_REQUEST['page'];
$offset = ($page - 1) * $max_records;
}
-$gBitSmarty->assign_by_ref('offset', $offset);
+$gBitSmarty->assignByRef('offset', $offset);
if (isset($_REQUEST["find"])) {
$find = $_REQUEST["find"];
@@ -53,11 +53,11 @@ if (isset($_REQUEST["find"])) {
$gBitSmarty->assign('find', $find);
-$gBitSmarty->assign_by_ref('sort_mode', $sort_mode);
+$gBitSmarty->assignByRef('sort_mode', $sort_mode);
$channels = $searchstatslib->list_search_stats($offset, $max_records, $sort_mode, $find);
$cant_pages = ceil($channels["cant"] / $max_records);
-$gBitSmarty->assign_by_ref('cant_pages', $cant_pages);
+$gBitSmarty->assignByRef('cant_pages', $cant_pages);
$gBitSmarty->assign('actual_page', 1 + ($offset / $max_records));
if ($channels["cant"] > ($offset + $max_records)) {
@@ -73,7 +73,7 @@ if ($offset > 0) {
$gBitSmarty->assign('prev_offset', -1);
}
-$gBitSmarty->assign_by_ref('channels', $channels["data"]);
+$gBitSmarty->assignByRef('channels', $channels["data"]);