summaryrefslogtreecommitdiff
path: root/content_history_inc.php
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2016-02-07 21:33:12 +0000
committerlsces <lester@lsces.co.uk>2016-02-07 21:33:12 +0000
commiteee69819dc59222812e05dcca418972e4d5313a8 (patch)
tree37f8b98d6e4c5197a0c55d050bb4b6efe4225f33 /content_history_inc.php
parentdd0c9def01545e13c805cfc6d7de4d45e228368a (diff)
downloadliberty-eee69819dc59222812e05dcca418972e4d5313a8.tar.gz
liberty-eee69819dc59222812e05dcca418972e4d5313a8.tar.bz2
liberty-eee69819dc59222812e05dcca418972e4d5313a8.zip
Move from Smarty2 to Smarty3 function style
Diffstat (limited to 'content_history_inc.php')
-rw-r--r--content_history_inc.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/content_history_inc.php b/content_history_inc.php
index f866ae8..6690de8 100644
--- a/content_history_inc.php
+++ b/content_history_inc.php
@@ -30,8 +30,8 @@ if( isset( $_REQUEST["delete"] ) && isset( $_REQUEST["hist"] )) {
if( $version = $gContent->getHistory( $_REQUEST["preview"] )) {
$version['data'][0]['no_cache'] = TRUE;
$version['data'][0]['parsed_data'] = $gContent->parseData( $version["data"][0] );
- $gBitSmarty->assign_by_ref( $smartyContentRef, $version['data'][0] );
- $gBitSmarty->assign_by_ref( 'version', $_REQUEST["preview"] );
+ $gBitSmarty->assignByRef( $smartyContentRef, $version['data'][0] );
+ $gBitSmarty->assignByRef( 'version', $_REQUEST["preview"] );
}
} elseif( @BitBase::verifyId( $_REQUEST["diff2"] ) ) {
@@ -70,9 +70,9 @@ if( isset( $_REQUEST["delete"] ) && isset( $_REQUEST["hist"] )) {
$from_page = $gContent->getHistory( $from_version );
$from_page['data'][0]['no_cache'] = TRUE;
$gBitSmarty->assign( 'compare', 'y' );
- $gBitSmarty->assign_by_ref( 'diff_from', $gContent->parseData( $from_page['data'][0] ) );
- $gBitSmarty->assign_by_ref( 'diff_to', $gContent->parseData() );
- $gBitSmarty->assign_by_ref( 'version_from', $from_version );
+ $gBitSmarty->assignByRef( 'diff_from', $gContent->parseData( $from_page['data'][0] ) );
+ $gBitSmarty->assignByRef( 'diff_to', $gContent->parseData() );
+ $gBitSmarty->assignByRef( 'version_from', $from_version );
} elseif( @BitBase::verifyId( $_REQUEST["rollback"] )) {
$gContent->verifyUserPermission( !empty( $rollbackPerm ) ? $rollbackPerm : $gContent->mUpdateContentPerm );