diff options
| author | lsces <lester@lsces.co.uk> | 2016-02-07 17:20:47 +0000 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2016-02-07 17:20:47 +0000 |
| commit | aec15b4e837b94deaa8dc3d4e2fac1f02e40651b (patch) | |
| tree | f3358e667c8686247c994aefd99f350bfd78abbe | |
| parent | c7aed5a7b1f56f0e79a3f508f81800ac73fd575b (diff) | |
| download | rss-aec15b4e837b94deaa8dc3d4e2fac1f02e40651b.tar.gz rss-aec15b4e837b94deaa8dc3d4e2fac1f02e40651b.tar.bz2 rss-aec15b4e837b94deaa8dc3d4e2fac1f02e40651b.zip | |
Move from Smarty2 to Smarty3 function style
| -rw-r--r-- | admin/admin_rssmodules.php | 10 |
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 |
