diff options
| author | lsces <lester@lsces.co.uk> | 2016-02-07 20:33:37 +0000 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2016-02-07 20:33:37 +0000 |
| commit | 27be7b4418c3895a3abed684c97f373f9429b038 (patch) | |
| tree | 93c1cabb4f5a6f920a1caf23a6df963ec6c3b7f0 /templates | |
| parent | 94047c98bb3e8f6f530d257c17b01d5cc20ba893 (diff) | |
| download | fisheye-27be7b4418c3895a3abed684c97f373f9429b038.tar.gz fisheye-27be7b4418c3895a3abed684c97f373f9429b038.tar.bz2 fisheye-27be7b4418c3895a3abed684c97f373f9429b038.zip | |
Move from Smarty2 to Smarty3 function style
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/center_list_galleries.php | 10 | ||||
| -rw-r--r-- | templates/center_list_images.php | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/templates/center_list_galleries.php b/templates/center_list_galleries.php index b5a961e..ccea099 100644 --- a/templates/center_list_galleries.php +++ b/templates/center_list_galleries.php @@ -38,24 +38,24 @@ if( !empty( $module_params['max_records'] ) ){ $galleryList = $gFisheyeGallery->getList( $listHash ); // support for div/ul/li listing of galleries -$gBitSmarty->assign_by_ref( 'galleryList', $galleryList ); +$gBitSmarty->assignByRef( 'galleryList', $galleryList ); /* Process the input parameters this page accepts */ if (!empty($gQueryUser) && $gQueryUser->isRegistered()) { - $gBitSmarty->assign_by_ref('gQueryUserId', $gQueryUser->mUserId); + $gBitSmarty->assignByRef('gQueryUserId', $gQueryUser->mUserId); $template = 'user_galleries.tpl'; } else { $template = 'list_galleries.tpl'; } if (!empty($_REQUEST['offset']) && is_numeric($_REQUEST['offset'])) { - $gBitSmarty->assign_by_ref('iMaxRows', $iMaxRows); + $gBitSmarty->assignByRef('iMaxRows', $iMaxRows); } if (!empty($_REQUEST['sort_mode'])) { - $gBitSmarty->assign_by_ref('iSortMode', $_REQUEST['sort_mode']); + $gBitSmarty->assignByRef('iSortMode', $_REQUEST['sort_mode']); } if (!empty($_REQUEST['search'])) { - $gBitSmarty->assign_by_ref('iSearchString', $iSearchtring); + $gBitSmarty->assignByRef('iSearchString', $iSearchtring); } ?> diff --git a/templates/center_list_images.php b/templates/center_list_images.php index 2415300..87782c0 100644 --- a/templates/center_list_images.php +++ b/templates/center_list_images.php @@ -6,16 +6,16 @@ $gFisheyeImage = new FisheyeImage(); if( !empty( $module_rows ) ) { $_REQUEST['max_records'] = $module_rows; } elseif (!empty($_REQUEST['offset']) && is_numeric($_REQUEST['offset'])) { - $gBitSmarty->assign_by_ref('iMaxRows', $iMaxRows); + $gBitSmarty->assignByRef('iMaxRows', $iMaxRows); } if (empty($_REQUEST['sort_mode'])) { $_REQUEST['sort_mode'] = 'random'; } if (!empty($_REQUEST['search'])) { - $gBitSmarty->assign_by_ref('iSearchString', $iSearchtring); + $gBitSmarty->assignByRef('iSearchString', $iSearchtring); } -$gBitSmarty->assign_by_ref('iSortMode', $_REQUEST['sort_mode']); +$gBitSmarty->assignByRef('iSortMode', $_REQUEST['sort_mode']); /* Get a list of galleries which matches the imput paramters (default is to list every gallery in the system) */ if( !empty( $gQueryUser ) && $gQueryUser->mUserId ) { @@ -24,11 +24,11 @@ if( !empty( $gQueryUser ) && $gQueryUser->mUserId ) { $_REQUEST['root_only'] = TRUE; $_REQUEST['get_thumbnails'] = TRUE; $thumbnailList = $gFisheyeImage->getList( $_REQUEST ); -$gBitSmarty->assign_by_ref('thumbnailList', $thumbnailList); +$gBitSmarty->assignByRef('thumbnailList', $thumbnailList); /* Process the input parameters this page accepts */ if (!empty($gQueryUser) && $gQueryUser->isRegistered()) { - $gBitSmarty->assign_by_ref('gQuerUserId', $gQueryUser->mUserId); + $gBitSmarty->assignByRef('gQuerUserId', $gQueryUser->mUserId); $template = 'user_galleries.tpl'; } else { $template = 'list_galleries.tpl'; |
