diff options
| author | lsces <lester@lsces.co.uk> | 2016-02-07 16:50:54 +0000 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2016-02-07 16:50:54 +0000 |
| commit | 253d0d0581fe8e610e4fef728259878d7a5d0d87 (patch) | |
| tree | 5b0a57bcefce95bc91dd2c4467f4bc4a198d04eb /post.php | |
| parent | 427ceb129fd3bc0e41642e62fdcd89d0f3d5700c (diff) | |
| download | blogs-253d0d0581fe8e610e4fef728259878d7a5d0d87.tar.gz blogs-253d0d0581fe8e610e4fef728259878d7a5d0d87.tar.bz2 blogs-253d0d0581fe8e610e4fef728259878d7a5d0d87.zip | |
Move from Smarty2 to Smarty3 function style
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -76,7 +76,7 @@ if (isset($_REQUEST["preview"])) { $post = $gContent->preparePreview( $_REQUEST ); $gBitSmarty->assign( 'preview', TRUE ); $gContent->invokeServices( 'content_preview_function' ); - $gBitSmarty->assign_by_ref( 'post_info', $post ); + $gBitSmarty->assignByRef( 'post_info', $post ); /* minor hack to accomodate the view_blog_post.tpl * this can eventually be removed with a change to the tpl to use post_info['parsed_data'] * but requires clean up in a few places. @@ -106,7 +106,7 @@ if (isset($_REQUEST["preview"])) { } else { $post = $gContent->preparePreview( $requestCopy ); $gContent->invokeServices( 'content_preview_function' ); - $gBitSmarty->assign_by_ref( 'post_info', $post ); + $gBitSmarty->assignByRef( 'post_info', $post ); $gBitSmarty->assign('parsed_data', $post['parsed_data']); } } elseif( !empty( $_REQUEST['edit'] ) ) { @@ -119,7 +119,7 @@ if (isset($_REQUEST["preview"])) { */ $gContent->mInfo['publish_date'] = $gBitSystem->getUTCTime(); } - $gBitSmarty->assign_by_ref('post_info', $gContent->mInfo); + $gBitSmarty->assignByRef('post_info', $gContent->mInfo); } // Get List of available blogs @@ -137,12 +137,12 @@ foreach( array_keys( $blogs ) as $blogContentId ) { } $gBitSmarty->assign( 'availableBlogs', $availableBlogs ); -$gBitSmarty->assign_by_ref('blogs', $blogs['data']); +$gBitSmarty->assignByRef('blogs', $blogs['data']); if (isset($_REQUEST['blog_content_id'])) { $gBitSmarty->assign('blog_content_id', $_REQUEST['blog_content_id'] ); } -$gBitSmarty->assign_by_ref( 'errors', $gContent->mErrors ); +$gBitSmarty->assignByRef( 'errors', $gContent->mErrors ); $gBitSmarty->assign( 'textarea_label', tra('Post Content') ); |
