diff options
| author | spiderr <spiderr@bitweaver.org> | 2021-01-31 15:49:08 -0500 |
|---|---|---|
| committer | spiderr <spiderr@bitweaver.org> | 2021-01-31 15:49:08 -0500 |
| commit | 71cbc7db147f95c78fc3b26d61fc31ad3c6bc0fb (patch) | |
| tree | ce46484ab0b09a8e2b83caf71cff7335693f0649 /edit.php | |
| parent | d9d215a4a116dce855582c319303f87462b972b3 (diff) | |
| download | wiki-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.php | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -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' ); } |
