diff options
| author | lsces <lester@lsces.co.uk> | 2016-02-07 17:44:38 +0000 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2016-02-07 17:44:38 +0000 |
| commit | 48d38bcee6e51e54102c85cabb2f5b94a819a03c (patch) | |
| tree | 3ad8d7370c6a0ffc301b407f56270e1bb0b4c89f /list_pages.php | |
| parent | 5f2e82a1fb1803fcc79fd31bd0f318f3661d639c (diff) | |
| download | wiki-48d38bcee6e51e54102c85cabb2f5b94a819a03c.tar.gz wiki-48d38bcee6e51e54102c85cabb2f5b94a819a03c.tar.bz2 wiki-48d38bcee6e51e54102c85cabb2f5b94a819a03c.zip | |
Move from Smarty2 to Smarty3 function style
Diffstat (limited to 'list_pages.php')
| -rw-r--r-- | list_pages.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/list_pages.php b/list_pages.php index 7107a33..be8ef91 100644 --- a/list_pages.php +++ b/list_pages.php @@ -57,12 +57,12 @@ if( isset( $_REQUEST["batch_submit"] ) && isset( $_REQUEST["checked"] ) && $_REQ } } if( !empty( $errors )) { - $gBitSmarty->assign_by_ref( 'errors', $errors ); + $gBitSmarty->assignByRef( 'errors', $errors ); } } } -$gBitSmarty->assign_by_ref( "gContent", $gContent ); +$gBitSmarty->assignByRef( "gContent", $gContent ); if( !empty( $_REQUEST['sort_mode'] )) { $listHash['sort_mode'] = preg_replace( '/^user_/', 'creator_user_', $_REQUEST['sort_mode'] ); @@ -77,8 +77,8 @@ $listHash['listInfo']['parameters']['find_author'] = !empty( $listHash['fin $listHash['listInfo']['parameters']['find_last_editor'] = !empty( $listHash['find_last_editor'] ) ? $listHash['find_last_editor'] : ''; $listHash['listInfo']['ihash']['content_type_guid'] = BITPAGE_CONTENT_TYPE_GUID; -$gBitSmarty->assign_by_ref( 'listpages', $listpages ); -$gBitSmarty->assign_by_ref( 'listInfo', $listHash['listInfo'] ); +$gBitSmarty->assignByRef( 'listpages', $listpages ); +$gBitSmarty->assignByRef( 'listInfo', $listHash['listInfo'] ); // Display the template $gBitSystem->display( 'bitpackage:wiki/list_pages.tpl', tra( 'Wiki Pages' ), array( 'display_mode' => 'list' )); |
