diff options
| author | lsces <lester@lsces.co.uk> | 2016-02-07 21:33:12 +0000 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2016-02-07 21:33:12 +0000 |
| commit | eee69819dc59222812e05dcca418972e4d5313a8 (patch) | |
| tree | 37f8b98d6e4c5197a0c55d050bb4b6efe4225f33 /lookup_content_inc.php | |
| parent | dd0c9def01545e13c805cfc6d7de4d45e228368a (diff) | |
| download | liberty-eee69819dc59222812e05dcca418972e4d5313a8.tar.gz liberty-eee69819dc59222812e05dcca418972e4d5313a8.tar.bz2 liberty-eee69819dc59222812e05dcca418972e4d5313a8.zip | |
Move from Smarty2 to Smarty3 function style
Diffstat (limited to 'lookup_content_inc.php')
| -rw-r--r-- | lookup_content_inc.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lookup_content_inc.php b/lookup_content_inc.php index 12599f0..d36b724 100644 --- a/lookup_content_inc.php +++ b/lookup_content_inc.php @@ -23,17 +23,17 @@ // $_REQUEST['page_id'] = $gStructure->mInfo['page_id']; if( $viewContent = LibertyBase::getLibertyObject( $gStructure->mInfo['content_id'], $gStructure->mInfo['content_type']['content_type_guid'] ) ) { $viewContent->setStructure( $_REQUEST['structure_id'] ); - $gBitSmarty->assign_by_ref( 'pageInfo', $viewContent->mInfo ); + $gBitSmarty->assignByRef( 'pageInfo', $viewContent->mInfo ); $gContent = &$viewContent; - $gBitSmarty->assign_by_ref( 'gContent', $gContent ); + $gBitSmarty->assignByRef( 'gContent', $gContent ); } } } elseif( @BitBase::verifyId( $_REQUEST['content_id'] ) ) { $_REQUEST['content_id'] = preg_replace( '/[\D]/', '', $_REQUEST['content_id'] ); require_once( LIBERTY_PKG_PATH.'LibertyBase.php'); if( $gContent = LibertyBase::getLibertyObject( $_REQUEST['content_id'] ) ) { - $gBitSmarty->assign_by_ref( 'gContent', $gContent ); - $gBitSmarty->assign_by_ref( 'pageInfo', $gContent->mInfo ); + $gBitSmarty->assignByRef( 'gContent', $gContent ); + $gBitSmarty->assignByRef( 'pageInfo', $gContent->mInfo ); } } |
