summaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
authormodela bitweaver <spiderr@bitweaver.org>2021-01-31 16:24:33 -0500
committermodela bitweaver <spiderr@bitweaver.org>2021-01-31 16:24:33 -0500
commitcec3828fae8fc189f0f0ae6057a92b36641aab2d (patch)
tree55249b772435d115a5e6a42bacef5c0456af3ee1 /edit.php
parent101d2e58985d719865acaf8fb04842f2a98c17b1 (diff)
downloadblogs-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.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/edit.php b/edit.php
index c4328e2..2b2d6ea 100644
--- a/edit.php
+++ b/edit.php
@@ -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');