diff options
| author | lsces <lester@lsces.co.uk> | 2016-02-07 16:48:21 +0000 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2016-02-07 16:48:21 +0000 |
| commit | 56b66c1c1e6645e7574eea55bc4ff0ff65ae931f (patch) | |
| tree | 8d988e3ed5a9ea84c53a4101949ad8670368e9ad /article_history.php | |
| parent | 1d7716a2e6fc0980d151e6c849a985d9e5400a2b (diff) | |
| download | articles-56b66c1c1e6645e7574eea55bc4ff0ff65ae931f.tar.gz articles-56b66c1c1e6645e7574eea55bc4ff0ff65ae931f.tar.bz2 articles-56b66c1c1e6645e7574eea55bc4ff0ff65ae931f.zip | |
Move from Smarty2 to Smarty3 function style
Diffstat (limited to 'article_history.php')
| -rw-r--r-- | article_history.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/article_history.php b/article_history.php index 4a8d525..8e236d3 100644 --- a/article_history.php +++ b/article_history.php @@ -47,8 +47,8 @@ include_once( LIBERTY_PKG_PATH.'content_history_inc.php' ); $gBitSmarty->assign( 'page', $page = !empty( $_REQUEST['list_page'] ) ? $_REQUEST['list_page'] : 1 ); $offset = ( $page - 1 ) * $gBitSystem->getConfig( 'max_records' ); $history = $gContent->getHistory( NULL, NULL, $offset, $gBitSystem->getConfig( 'max_records' ) ); -$gBitSmarty->assign_by_ref( 'data', $history['data'] ); -$gBitSmarty->assign_by_ref( 'listInfo', $history['listInfo'] ); +$gBitSmarty->assignByRef( 'data', $history['data'] ); +$gBitSmarty->assignByRef( 'listInfo', $history['listInfo'] ); //vd($gContent->getHistoryCount()); @@ -57,5 +57,5 @@ $numPages = ceil( $gContent->getHistoryCount() / $gBitSystem->getConfig('max_rec $gBitSmarty->assign( 'numPages', $numPages ); // Display the template -$gBitSmarty->assign_by_ref( 'gContent', $gContent ); +$gBitSmarty->assignByRef( 'gContent', $gContent ); $gBitSystem->display( 'bitpackage:articles/article_history.tpl', NULL, array( 'display_mode' => 'display' )); |
