diff options
| author | lsces <lester@lsces.co.uk> | 2016-02-07 17:23:09 +0000 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2016-02-07 17:23:09 +0000 |
| commit | 440dd66a18d5f3f58c20f297e5c7d7be1741c77b (patch) | |
| tree | 021f4095a4292527b62432fa2a9c075b7702abd2 /directory_search.php | |
| parent | efecaa5e52f1b7f9e09b840c261ccc763a455689 (diff) | |
| download | search-440dd66a18d5f3f58c20f297e5c7d7be1741c77b.tar.gz search-440dd66a18d5f3f58c20f297e5c7d7be1741c77b.tar.bz2 search-440dd66a18d5f3f58c20f297e5c7d7be1741c77b.zip | |
Move from Smarty2 to Smarty3 function style
Diffstat (limited to 'directory_search.php')
| -rw-r--r-- | directory_search.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/directory_search.php b/directory_search.php index 9693381..3d84272 100644 --- a/directory_search.php +++ b/directory_search.php @@ -33,7 +33,7 @@ if ( empty( $_REQUEST["sort_mode"] ) ) { } else { $sort_mode = $_REQUEST["sort_mode"]; } -$gBitSmarty->assign_by_ref('sort_mode', $sort_mode); +$gBitSmarty->assignByRef('sort_mode', $sort_mode); if (!isset($_REQUEST["offset"])) { $offset = 0; @@ -44,7 +44,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"]; @@ -60,7 +60,7 @@ if ($_REQUEST['where'] == 'all') { } $cant_pages = ceil($items["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 ($items["cant"] > ($offset + $max_records)) { @@ -75,7 +75,7 @@ if ($offset > 0) { $gBitSmarty->assign('prev_offset', -1); } -$gBitSmarty->assign_by_ref('items', $items["data"]); +$gBitSmarty->assignByRef('items', $items["data"]); $section = 'directory'; // Display the template |
