summaryrefslogtreecommitdiff
path: root/ajax_comments.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 /ajax_comments.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 'ajax_comments.php')
-rw-r--r--ajax_comments.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/ajax_comments.php b/ajax_comments.php
index df8d98a..08ab685 100644
--- a/ajax_comments.php
+++ b/ajax_comments.php
@@ -35,7 +35,7 @@ if( !$gContent->hasUserPermission( 'p_liberty_post_comments', TRUE, TRUE)) {
if ($storeComment->loadComment()){
$statusCode = 200;
$postComment = $storeComment->mInfo;
- $postComment['parsed_data'] = $storeComment->parseData( $postComment );
+ $postComment['parsed_data'] = LibertyContent::parseDataHash( $postComment, $storeComment );
} else {
//if store is requested but it fails for some reason - like captcha mismatch
$statusCode = 400;
@@ -80,5 +80,3 @@ header( "content-type:text/xml" );
print_r( '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>' );
print_r( $mRet );
-die;
-?>