diff options
| author | lsces <lester@lsces.co.uk> | 2016-02-07 16:52:14 +0000 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2016-02-07 16:52:14 +0000 |
| commit | ec5f7a975915b9ef49499fc0ad063c5ecb8cdfd3 (patch) | |
| tree | acf78aeabb74725e27e61e2e245274f70f6e894a | |
| parent | c3f0281d2755f78664f7541dce3a8c85706dc7d1 (diff) | |
| download | boards-ec5f7a975915b9ef49499fc0ad063c5ecb8cdfd3.tar.gz boards-ec5f7a975915b9ef49499fc0ad063c5ecb8cdfd3.tar.bz2 boards-ec5f7a975915b9ef49499fc0ad063c5ecb8cdfd3.zip | |
Move from Smarty2 to Smarty3 function style
| -rw-r--r-- | admin/admin_boards_inc.php | 2 | ||||
| -rw-r--r-- | assign.php | 2 | ||||
| -rw-r--r-- | edit.php | 4 | ||||
| -rw-r--r-- | edit_topic.php | 2 | ||||
| -rw-r--r-- | edit_topic_inc.php | 4 | ||||
| -rw-r--r-- | list_boards_inc.php | 2 | ||||
| -rw-r--r-- | lookup_inc.php | 2 | ||||
| -rw-r--r-- | mailing_list.php | 4 | ||||
| -rw-r--r-- | topic_move.php | 2 | ||||
| -rw-r--r-- | user_preferences_inc.php | 2 | ||||
| -rw-r--r-- | view_board_inc.php | 6 | ||||
| -rw-r--r-- | view_topic_inc.php | 8 |
12 files changed, 20 insertions, 20 deletions
diff --git a/admin/admin_boards_inc.php b/admin/admin_boards_inc.php index 2eb97b8..1eb39c0 100644 --- a/admin/admin_boards_inc.php +++ b/admin/admin_boards_inc.php @@ -79,5 +79,5 @@ if( $processForm ) { $board = new BitBoard(); $boards = $board->getBoardSelectList( $_REQUEST ); -$gBitSmarty->assign_by_ref(BOARDS_PKG_NAME, $boards['data']); +$gBitSmarty->assignByRef(BOARDS_PKG_NAME, $boards['data']); ?> @@ -57,7 +57,7 @@ if (!empty($_REQUEST['integrity'])) { } $data = BitBoard::getAllMap(); -$gBitSmarty->assign_by_ref('data',$data); +$gBitSmarty->assignByRef('data',$data); // Display the template $gBitSystem->display( 'bitpackage:boards/board_assign.tpl', tra('Assign content to Board') , array( 'display_mode' => 'display' )); @@ -38,7 +38,7 @@ if( isset( $_REQUEST['remove'] ) ) { $formHash['remove'] = TRUE; $gBitSystem->confirmDialog( $formHash, array( 'warning' => tra( 'Are you sure you want to remove the entire message board' ).' "'.$gContent->getTitle().'" ?', 'error' => 'This cannot be undone!' ) ); } elseif( !$gContent->expunge() ) { - $gBitSmarty->assign_by_ref( 'errors', $deleteComment->mErrors ); + $gBitSmarty->assignByRef( 'errors', $deleteComment->mErrors ); } else { bit_redirect( BOARDS_PKG_URL.'index.php' ); } @@ -69,7 +69,7 @@ if( !empty( $_REQUEST["save_bitboard"] ) ) { $gContent->storePreference( 'board_sync_list_address', (!empty( $_REQUEST['bitboardconfig']['board_sync_list_address'] ) ? $_REQUEST['bitboardconfig']['board_sync_list_address'] : NULL) ); bit_redirect( $gContent->getDisplayUrl() ); } else { - $gBitSmarty->assign_by_ref( 'errors', $gContent->mErrors ); + $gBitSmarty->assignByRef( 'errors', $gContent->mErrors ); } } diff --git a/edit_topic.php b/edit_topic.php index 36ffbf2..15ba29b 100644 --- a/edit_topic.php +++ b/edit_topic.php @@ -66,7 +66,7 @@ if( isset($_REQUEST['is_locked']) || isset($_REQUEST['is_sticky']) ){ // @TODO Topic should extend LibertyComment - but until that day we load it up a second time $topicAsComment = new LibertyComment( $_REQUEST['t'] ); if( !$topicAsComment->expunge() ) { - $gBitSmarty->assign_by_ref( 'errors', $topicAsComment->mErrors ); + $gBitSmarty->assignByRef( 'errors', $topicAsComment->mErrors ); } // send us back to the baord - http_referer won't work with confirm process bit_redirect( BOARDS_PKG_URL.'index.php?b='. $gContent->mInfo['board_id'] ); diff --git a/edit_topic_inc.php b/edit_topic_inc.php index 6ec4cb6..c1cbbf2 100644 --- a/edit_topic_inc.php +++ b/edit_topic_inc.php @@ -40,12 +40,12 @@ if( isset( $_REQUEST["submit_mult"] ) && isset( $_REQUEST["checked"] ) && $_REQU $deleteComment = new LibertyComment( $deleteId ); if( $deleteComment->isValid() && $gBitUser->hasPermission('p_liberty_admin_comments') ) { if( !$deleteComment->expunge() ) { - $gBitSmarty->assign_by_ref( 'errors', $deleteComment->mErrors ); + $gBitSmarty->assignByRef( 'errors', $deleteComment->mErrors ); } } } if( !empty( $errors ) ) { - $gBitSmarty->assign_by_ref( 'errors', $errors ); + $gBitSmarty->assignByRef( 'errors', $errors ); } } } diff --git a/list_boards_inc.php b/list_boards_inc.php index 27606de..4ab89bf 100644 --- a/list_boards_inc.php +++ b/list_boards_inc.php @@ -97,7 +97,7 @@ if (count($ret['members']) == 1) { $ns[] = $ret; } -$gBitSmarty->assign_by_ref('ns',$ns); +$gBitSmarty->assignByRef('ns',$ns); // this might be for getting a count of nested boards - not entirely sure, if you figure it out please clarify this comment. function countBoards(&$a) { diff --git a/lookup_inc.php b/lookup_inc.php index f9480bc..9d04ffd 100644 --- a/lookup_inc.php +++ b/lookup_inc.php @@ -28,6 +28,6 @@ if( @BitBase::verifyId( $_REQUEST['t'] ) ) { } $gContent->load(); -$gBitSmarty->assign_by_ref( "gContent", $gContent ); +$gBitSmarty->assignByRef( "gContent", $gContent ); ?> diff --git a/mailing_list.php b/mailing_list.php index bd91d53..fee54ab 100644 --- a/mailing_list.php +++ b/mailing_list.php @@ -93,13 +93,13 @@ if( $gContent->getBoardMailingList() ) { $gBitSmarty->assign( 'boardsMailingList', $gContent->getBoardMailingList() ); if ( $gContent->hasUserPermission( 'p_boards_boards_members_view' ) ){ $members = mailman_list_members( $gContent->getPreference( 'boards_mailing_list' ) ); - $gBitSmarty->assign_by_ref( 'listMembers', $members ); + $gBitSmarty->assignByRef( 'listMembers', $members ); } } else { $gBitSmarty->assign( 'suggestedListName', preg_replace( '/[^a-z0-9]/', '', strtolower( $gContent->getTitle() ) ) ); } // display -$gBitSmarty->assign_by_ref( 'board', $gContent ); +$gBitSmarty->assignByRef( 'board', $gContent ); $gBitSystem->display( "bitpackage:boards/mailing_list.tpl", $gContent->getTitle() ." ". tra( 'Message Board Mailing List' ) , array( 'display_mode' => 'list' )); ?> diff --git a/topic_move.php b/topic_move.php index 0802280..b924eb7 100644 --- a/topic_move.php +++ b/topic_move.php @@ -44,7 +44,7 @@ if( isset( $_REQUEST["target"] ) ) { // get list of boards we can move the topic to $boards = $board->getBoardSelectList(); -$gBitSmarty->assign_by_ref('boards', $boards); +$gBitSmarty->assignByRef('boards', $boards); $gBitSmarty->assign('fromBoardId', $board->mContentId); diff --git a/user_preferences_inc.php b/user_preferences_inc.php index 4a2d8ae..2f175a2 100644 --- a/user_preferences_inc.php +++ b/user_preferences_inc.php @@ -38,7 +38,7 @@ if (!empty($content_type) && !empty($content_data)) { $signatureContent->mInfo['format_guid']=$editUser->getPreference('signature_content_type'); $signatureContent->mInfo['data']=$content_data; } -$gBitSmarty->assign_by_ref( 'signatureContent', $signatureContent ); +$gBitSmarty->assignByRef( 'signatureContent', $signatureContent ); if( isset( $_REQUEST["format_guid"] ) ) { diff --git a/view_board_inc.php b/view_board_inc.php index a732b29..4e982e8 100644 --- a/view_board_inc.php +++ b/view_board_inc.php @@ -99,12 +99,12 @@ $threads->mRootObj = $gContent; $threadsListHash = $_REQUEST; $threadList = $threads->getList( $threadsListHash ); -$gBitSmarty->assign_by_ref( 'threadList', $threadList ); +$gBitSmarty->assignByRef( 'threadList', $threadList ); // getList() has now placed all the pagination information in $_REQUEST['listInfo'] -$gBitSmarty->assign_by_ref( 'listInfo', $threadsListHash['listInfo'] ); +$gBitSmarty->assignByRef( 'listInfo', $threadsListHash['listInfo'] ); -$gBitSmarty->assign_by_ref( 'board', $gContent ); +$gBitSmarty->assignByRef( 'board', $gContent ); $gBitSmarty->assign( 'cat_url', BOARDS_PKG_URL."index.php"); //?ct=".urlencode($gContent->mInfo['content_type_guid'])); $gBitThemes->loadAjax( 'mochikit' ); diff --git a/view_topic_inc.php b/view_topic_inc.php index 360cbb4..80bb38f 100644 --- a/view_topic_inc.php +++ b/view_topic_inc.php @@ -67,10 +67,10 @@ $thread->verifyViewPermission(); // load up the root board we need it $gBoard = new BitBoard(null,$thread->mInfo['board_content_id']); $gBoard->load(); -$gBitSmarty->assign_by_ref( 'board', $gBoard ); +$gBitSmarty->assignByRef( 'board', $gBoard ); // force root board to be gContent $gContent = &$gBoard; -$gBitSmarty->assign_by_ref('gContent', $gContent); +$gBitSmarty->assignByRef('gContent', $gContent); // if you know what this is please comment it @@ -90,7 +90,7 @@ $thread->invokeServices( 'content_display_function', $displayHash ); $thread->readTopic(); -$gBitSmarty->assign_by_ref( 'thread', $thread ); +$gBitSmarty->assignByRef( 'thread', $thread ); $gBitSmarty->assign('topic_locked',$thread->isLocked()); @@ -124,7 +124,7 @@ if (!empty($_REQUEST['warning'])) { } } } -$gBitSmarty->assign_by_ref('warnings',$warnings); +$gBitSmarty->assignByRef('warnings',$warnings); // ajax support |
