summaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
authorspiderr <spiderr@bitweaver.org>2021-01-31 15:49:08 -0500
committerspiderr <spiderr@bitweaver.org>2021-01-31 15:49:08 -0500
commit71cbc7db147f95c78fc3b26d61fc31ad3c6bc0fb (patch)
treece46484ab0b09a8e2b83caf71cff7335693f0649 /edit.php
parentd9d215a4a116dce855582c319303f87462b972b3 (diff)
downloadwiki-71cbc7db147f95c78fc3b26d61fc31ad3c6bc0fb.tar.gz
wiki-71cbc7db147f95c78fc3b26d61fc31ad3c6bc0fb.tar.bz2
wiki-71cbc7db147f95c78fc3b26d61fc31ad3c6bc0fb.zip
PHP7 clean up dual static + object use of parseData, and create ->getParsedData & ::filterDataHash
Diffstat (limited to 'edit.php')
-rw-r--r--edit.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/edit.php b/edit.php
index 3a083c7..76b2cb3 100644
--- a/edit.php
+++ b/edit.php
@@ -73,10 +73,10 @@ if( $gBitSystem->isFeatureActive( 'wiki_footnotes' ) ) {
$gBitSmarty->assign( 'footnote', $footnote );
if( $footnote )
$gBitSmarty->assign( 'has_footnote', 'y' );
- $gBitSmarty->assign( 'parsed_footnote', $gContent->parseData( $footnote ) );
+ $gBitSmarty->assign( 'parsed_footnote', LibertyContent::parseDataHash( $footnote ) );
if( isset( $_REQUEST['footnote'] ) ) {
- $gBitSmarty->assign( 'parsed_footnote', $gContent->parseData( $_REQUEST['footnote'] ) );
+ $gBitSmarty->assign( 'parsed_footnote', LibertyContent::parseDataHash( $_REQUEST['footnote'] ) );
$gBitSmarty->assign( 'footnote', $_REQUEST['footnote'] );
$gBitSmarty->assign( 'has_footnote', 'y' );
if( empty( $_REQUEST['footnote'] ) ) {
@@ -210,16 +210,12 @@ if( isset( $_REQUEST["preview"] ) ) {
$formInfo['edit_section'] = 1;
}
- $data_to_parse = $formInfo['edit'];
+ $data_to_parse['data'] = $formInfo['edit'];
if( !empty( $formInfo['section'] ) && !empty( $gContent->mInfo['data'] )) {
$full_page_data = $gContent->mInfo['data'];
}
-
- $formInfo['parsed_data'] = $gContent->parseData(
- $data_to_parse,
- ( !empty( $_REQUEST['format_guid'] ) ? $_REQUEST['format_guid'] : ( isset( $gContent->mInfo['format_guid'] ) ? $gContent->mInfo['format_guid'] : 'tikiwiki' ))
- );
+ $formInfo['parsed_data'] = LibertyContent::parseDataHash( $data_to_parse );
$gContent->invokeServices( 'content_preview_function' );
}