diff options
| author | modela bitweaver <spiderr@bitweaver.org> | 2021-01-31 16:24:33 -0500 |
|---|---|---|
| committer | modela bitweaver <spiderr@bitweaver.org> | 2021-01-31 16:24:33 -0500 |
| commit | cec3828fae8fc189f0f0ae6057a92b36641aab2d (patch) | |
| tree | 55249b772435d115a5e6a42bacef5c0456af3ee1 /edit.php | |
| parent | 101d2e58985d719865acaf8fb04842f2a98c17b1 (diff) | |
| download | blogs-cec3828fae8fc189f0f0ae6057a92b36641aab2d.tar.gz blogs-cec3828fae8fc189f0f0ae6057a92b36641aab2d.tar.bz2 blogs-cec3828fae8fc189f0f0ae6057a92b36641aab2d.zip | |
PHP7 clean up dual static + object use of parseData, and create ->getParsedData & ::filterDataHash
Diffstat (limited to 'edit.php')
| -rw-r--r-- | edit.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -30,7 +30,8 @@ if (isset($_REQUEST['preview'])) { //all this should prolly be moved to a BitBlog::preparePreview method and the tpls cleaned - but this works for now -wjames5 $gBitSmarty->assign('title', $_REQUEST["title"]); $gBitSmarty->assign('edit', $_REQUEST["edit"]); - $gBitSmarty->assign('parsed', $gContent->parseData( $_REQUEST["edit"], $_REQUEST["format_guid"])); + $_REQUEST['data'] = $_REQUEST['edit']; // needed for parseDataHash + $gBitSmarty->assign('parsed', LibertyContent::parseDataHash( $_REQUEST ); $gBitSmarty->assign('user_name', $gBitUser->getDisplayName()); $gBitSmarty->assign('created', $gBitSystem->getUTCTime()); $gBitSmarty->assign('use_find', isset($_REQUEST["use_find"]) ? 'y' : 'n'); |
