summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--directory_search.php8
-rw-r--r--index.php4
-rw-r--r--modules/mod_global_search.php2
-rw-r--r--stats.php8
4 files changed, 11 insertions, 11 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
diff --git a/index.php b/index.php
index 6c2a82b..c486b38 100644
--- a/index.php
+++ b/index.php
@@ -94,10 +94,10 @@ if ( $_REQUEST['cant'] > 0 ) {
}
}
LibertyContent::postGetList( $_REQUEST );
-$gBitSmarty->assign_by_ref( 'listInfo', $_REQUEST['listInfo'] );
+$gBitSmarty->assignByRef( 'listInfo', $_REQUEST['listInfo'] );
// Find search results (build array)
-$gBitSmarty->assign_by_ref('results', $results);
+$gBitSmarty->assignByRef('results', $results);
// Display the template
$gBitSystem->display( 'bitpackage:search/search.tpl', 'Search Results for: '.strip_tags($_REQUEST["highlight"]), array( 'display_mode' => 'display' ));
diff --git a/modules/mod_global_search.php b/modules/mod_global_search.php
index 21cad84..f658299 100644
--- a/modules/mod_global_search.php
+++ b/modules/mod_global_search.php
@@ -30,5 +30,5 @@ if( empty( $contentTypes ) ) {
}
}
}
-$gBitSmarty->assign( 'contentTypes', $contentTypes );
+$_template->tpl_vars['contentTypes'] = new Smarty_variable( $contentTypes );
?>
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"]);