summaryrefslogtreecommitdiff
path: root/content_history_inc.php
diff options
context:
space:
mode:
authorspiderr <spiderr@bitweaver.org>2021-01-31 15:06:47 -0500
committerspiderr <spiderr@bitweaver.org>2021-01-31 15:06:47 -0500
commit7730c867571e102050e5b9b74a7acffd98648060 (patch)
treeb56d58e2e438ace9fb1777a2edf46c42d93ae5eb /content_history_inc.php
parent411c542889ea1190f77c74a1c1e2f0920cb044b2 (diff)
downloadliberty-7730c867571e102050e5b9b74a7acffd98648060.tar.gz
liberty-7730c867571e102050e5b9b74a7acffd98648060.tar.bz2
liberty-7730c867571e102050e5b9b74a7acffd98648060.zip
PHP7 clean up dual static + object use of parseData, and create ->getParsedData & ::filterDataHash
Diffstat (limited to 'content_history_inc.php')
-rw-r--r--content_history_inc.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/content_history_inc.php b/content_history_inc.php
index cfb2eca..8690c77 100644
--- a/content_history_inc.php
+++ b/content_history_inc.php
@@ -29,7 +29,7 @@ if( isset( $_REQUEST["delete"] ) && isset( $_REQUEST["hist"] )) {
} elseif( @BitBase::verifyId( $_REQUEST["preview"] )) {
if( $version = $gContent->getHistory( $_REQUEST["preview"] )) {
$version['data'][0]['no_cache'] = TRUE;
- $version['data'][0]['parsed_data'] = $gContent->parseData( $version["data"][0] );
+ $version['data'][0]['parsed_data'] = LibertyContent::parseDataHash( $version["data"][0], $gContent );
$gBitSmarty->assignByRef( $smartyContentRef, $version['data'][0] );
$gBitSmarty->assignByRef( 'version', $_REQUEST["preview"] );
}
@@ -70,8 +70,8 @@ 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->assignByRef( 'diff_from', $gContent->parseData( $from_page['data'][0] ) );
- $gBitSmarty->assignByRef( 'diff_to', $gContent->parseData() );
+ $gBitSmarty->assignByRef( 'diff_from', LibertyContent::parseDataHash( $from_page['data'][0] ) );
+ $gBitSmarty->assignByRef( 'diff_to', $gContent->getParsedData() );
$gBitSmarty->assignByRef( 'version_from', $from_version );
} elseif( @BitBase::verifyId( $_REQUEST["rollback"] )) {
@@ -84,4 +84,3 @@ if( isset( $_REQUEST["delete"] ) && isset( $_REQUEST["hist"] )) {
}
}
-?>