diff options
| author | lsces <lester@lsces.co.uk> | 2016-02-07 21:51:22 +0000 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2016-02-07 21:51:22 +0000 |
| commit | 750e70a973282dc09b16c155ea233bc470dffaf7 (patch) | |
| tree | 2ce78ab98b4f14ceb50e1f94367fb4d1eaa9a3de | |
| parent | 919e1c648670eb32c5d1171548b636b8906be146 (diff) | |
| download | pigeonholes-750e70a973282dc09b16c155ea233bc470dffaf7.tar.gz pigeonholes-750e70a973282dc09b16c155ea233bc470dffaf7.tar.bz2 pigeonholes-750e70a973282dc09b16c155ea233bc470dffaf7.zip | |
Move from Smarty2 to Smarty3 function style
| -rw-r--r-- | assign_content.php | 4 | ||||
| -rw-r--r-- | lookup_pigeonholes_inc.php | 2 | ||||
| -rw-r--r-- | 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 ); ?> @@ -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 ) ); |
