From 750e70a973282dc09b16c155ea233bc470dffaf7 Mon Sep 17 00:00:00 2001 From: lsces Date: Sun, 7 Feb 2016 21:51:22 +0000 Subject: Move from Smarty2 to Smarty3 function style --- assign_content.php | 4 ++-- lookup_pigeonholes_inc.php | 2 +- view.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/assign_content.php b/assign_content.php index e2157da..9e15b47 100644 --- a/assign_content.php +++ b/assign_content.php @@ -24,7 +24,7 @@ $gBitSystem->verifyPermission( 'p_pigeonholes_insert_member' ); include_once( PIGEONHOLES_PKG_PATH.'lookup_pigeonholes_inc.php' ); $feedback = ''; -$gBitSmarty->assign_by_ref( 'feedback', $feedback ); +$gBitSmarty->assignByRef( 'feedback', $feedback ); $contentTypes = array( '' => tra( 'All Content' ) ); foreach( $gLibertySystem->mContentTypes as $cType ) { @@ -101,7 +101,7 @@ if(( !empty( $_REQUEST['insert_content'] ) || !empty( $_REQUEST['insert_content_ $assignableContent = $gContent->getAssignableContent( $listHash ); } -$gBitSmarty->assign_by_ref( 'listInfo', $listHash['listInfo'] ); +$gBitSmarty->assignByRef( 'listInfo', $listHash['listInfo'] ); $listHash = array( 'load_only_root' => TRUE, diff --git a/lookup_pigeonholes_inc.php b/lookup_pigeonholes_inc.php index 095d1d7..62ce442 100644 --- a/lookup_pigeonholes_inc.php +++ b/lookup_pigeonholes_inc.php @@ -16,5 +16,5 @@ */ $gContent = new Pigeonholes( ( !empty( $_REQUEST['structure_id'] ) ? $_REQUEST['structure_id'] : NULL ), ( !empty( $_REQUEST['content_id'] ) ? $_REQUEST['content_id'] : NULL ) ); $gContent->load( TRUE ); -$gBitSmarty->assign_by_ref( 'gContent', $gContent ); +$gBitSmarty->assignByRef( 'gContent', $gContent ); ?> diff --git a/view.php b/view.php index 0089e22..0158937 100644 --- a/view.php +++ b/view.php @@ -28,7 +28,7 @@ if (isset($_REQUEST['structure_id'])) { header("Location:".$gContent->getDisplayUrl()); } -$gBitSmarty->assign_by_ref( 'memberFeedback', $memberFeedback = array() ); +$gBitSmarty->assignByRef( 'memberFeedback', $memberFeedback = array() ); // set up structure related stuff global $gStructure; @@ -55,7 +55,7 @@ if( empty( $gStructure ) || !$gStructure->isValid() ) { $gBitSystem->fatalError( tra( 'Invalid structure' )); } -$gBitSmarty->assign_by_ref( 'gStructure', $gStructure ); +$gBitSmarty->assignByRef( 'gStructure', $gStructure ); $gBitSmarty->assign( 'structureInfo', $gStructure->mInfo ); $gBitSmarty->assign( 'subtree', $gStructure->getSubTree( $gStructure->mStructureId ) ); -- cgit v1.3