summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2016-02-07 17:20:47 +0000
committerlsces <lester@lsces.co.uk>2016-02-07 17:20:47 +0000
commitaec15b4e837b94deaa8dc3d4e2fac1f02e40651b (patch)
treef3358e667c8686247c994aefd99f350bfd78abbe
parentc7aed5a7b1f56f0e79a3f508f81800ac73fd575b (diff)
downloadrss-aec15b4e837b94deaa8dc3d4e2fac1f02e40651b.tar.gz
rss-aec15b4e837b94deaa8dc3d4e2fac1f02e40651b.tar.bz2
rss-aec15b4e837b94deaa8dc3d4e2fac1f02e40651b.zip
Move from Smarty2 to Smarty3 function style
-rw-r--r--admin/admin_rssmodules.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/admin/admin_rssmodules.php b/admin/admin_rssmodules.php
index bf7685e..c1dfb01 100644
--- a/admin/admin_rssmodules.php
+++ b/admin/admin_rssmodules.php
@@ -35,7 +35,7 @@ if( isset( $_REQUEST["view"] ) ) {
$feed->handle_content_type();
$items = $feed->get_items();
- $gBitSmarty->assign_by_ref( 'items', $items );
+ $gBitSmarty->assignByRef( 'items', $items );
}
if( $_REQUEST["rss_id"] ) {
@@ -111,7 +111,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"];
@@ -121,11 +121,11 @@ if (isset($_REQUEST["find"])) {
$gBitSmarty->assign('find', $find);
-$gBitSmarty->assign_by_ref('sort_mode', $sort_mode);
+$gBitSmarty->assignByRef('sort_mode', $sort_mode);
$channels = $rsslib->list_rss_modules($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)) {
@@ -141,7 +141,7 @@ if ($offset > 0) {
$gBitSmarty->assign('prev_offset', -1);
}
-$gBitSmarty->assign_by_ref('channels', $channels["data"]);
+$gBitSmarty->assignByRef('channels', $channels["data"]);
// Display the template