diff --git a/comment.php b/comment.php index 166743ed5..670935946 100644 --- a/comment.php +++ b/comment.php @@ -85,7 +85,7 @@ if(e_AJAX_REQUEST) // TODO improve security if(!vartrue($_POST['comment']) && varset($_GET['mode']) == 'submit') { $ret['error'] = true; - $ret['msg'] = COMLAN_336; + $ret['msg'] = COMLAN_336." - ".implode(" ",$_GET); echo json_encode($ret); exit; } diff --git a/e107_core/shortcodes/batch/comment_shortcodes.php b/e107_core/shortcodes/batch/comment_shortcodes.php index a761ad2a6..66c9e3418 100644 --- a/e107_core/shortcodes/batch/comment_shortcodes.php +++ b/e107_core/shortcodes/batch/comment_shortcodes.php @@ -21,7 +21,7 @@ class comment_shortcodes extends e_shortcode { var $var; - function sc_subject_input($parm = '') + function sc_subject_input($parm = null) { $tp = e107::getParser(); $pref = e107::getPref(); @@ -65,7 +65,7 @@ class comment_shortcodes extends e_shortcode } - function sc_username($parm='') + function sc_username($parm = null) { global $USERNAME; if (isset($this->var['comment_author_id']) && $this->var['comment_author_id']) @@ -82,7 +82,7 @@ class comment_shortcodes extends e_shortcode } - function sc_timedate($parm='') + function sc_timedate($parm = null) { if($parm == 'relative') { @@ -93,7 +93,7 @@ class comment_shortcodes extends e_shortcode } - function sc_reply($parm='') + function sc_reply($parm = null) { global $REPLY, $action, $table, $id, $thisaction, $thistable, $thisid; @@ -136,7 +136,7 @@ class comment_shortcodes extends e_shortcode } - function sc_avatar($parm='') + function sc_avatar($parm = null) { return $this->sc_comment_avatar($parm); @@ -162,14 +162,14 @@ class comment_shortcodes extends e_shortcode } - function sc_comments($parm='') + function sc_comments($parm = null) { global $COMMENTS; return (isset($this->var['user_id']) && $this->var['user_id'] ? LAN_COMMENTS.": ".$this->var['user_comments'] : COMLAN_194)."
"; } - function sc_joined($parm='') + function sc_joined($parm = null) { global $JOINED, $gen; $JOINED = ''; @@ -181,17 +181,17 @@ class comment_shortcodes extends e_shortcode } - function sc_comment_itemid($parm='') // for ajax item id. + function sc_comment_itemid($parm = null) // for ajax item id. { return 'comment-'.intval($this->var['comment_id']); } - function sc_comment_moderate($parm='') + function sc_comment_moderate($parm = null) { if(!getperms('0') && !getperms("B")) { - return; + return null; } // TODO put into a