fix parse errors
This commit is contained in:
parent
5731762a34
commit
e0aa3c8c3c
2 changed files with 6 additions and 6 deletions
|
@ -1438,10 +1438,10 @@ class serendipity_event_faq extends serendipity_event
|
||||||
$cbag = new serendipity_property_bag();
|
$cbag = new serendipity_property_bag();
|
||||||
$this->introspect_category_item($config_item, $cbag);
|
$this->introspect_category_item($config_item, $cbag);
|
||||||
|
|
||||||
$cname = (function_exists('serendipity_specialchars') ? serendipity_specialchars($cbag->get('name')) : htmlspecialchars($cbag->get('name'), ENT_COMPAT, LANG_CHARSET)));
|
$cname = (function_exists('serendipity_specialchars') ? serendipity_specialchars($cbag->get('name')) : htmlspecialchars($cbag->get('name'), ENT_COMPAT, LANG_CHARSET));
|
||||||
$cdesc = (function_exists('serendipity_specialchars') ? serendipity_specialchars($cbag->get('description')) : htmlspecialchars($cbag->get('description'), ENT_COMPAT, LANG_CHARSET)));
|
$cdesc = (function_exists('serendipity_specialchars') ? serendipity_specialchars($cbag->get('description')) : htmlspecialchars($cbag->get('description'), ENT_COMPAT, LANG_CHARSET));
|
||||||
$value = $this->getCategory($config_item, 'unset');
|
$value = $this->getCategory($config_item, 'unset');
|
||||||
$lang_direction = (function_exists('serendipity_specialchars') ? serendipity_specialchars($cbag->get('lang_direction')) : htmlspecialchars($cbag->get('lang_direction'), ENT_COMPAT, LANG_CHARSET)));
|
$lang_direction = (function_exists('serendipity_specialchars') ? serendipity_specialchars($cbag->get('lang_direction')) : htmlspecialchars($cbag->get('lang_direction'), ENT_COMPAT, LANG_CHARSET));
|
||||||
|
|
||||||
if (empty($lang_direction)) {
|
if (empty($lang_direction)) {
|
||||||
$lang_direction = LANG_DIRECTION;
|
$lang_direction = LANG_DIRECTION;
|
||||||
|
|
|
@ -1255,11 +1255,11 @@ class serendipity_event_forum extends serendipity_event {
|
||||||
$serendipity['smarty']->assign('ERRORMSG', $ERRORMSG);
|
$serendipity['smarty']->assign('ERRORMSG', $ERRORMSG);
|
||||||
}
|
}
|
||||||
if ($this->get_config('apply_markup')) {
|
if ($this->get_config('apply_markup')) {
|
||||||
$temp_array = array('body' => (function_exists('serendipity_specialchars') ? serendipity_specialchars(stripslashes(trim($post[0]['message']))) : htmlspecialchars(stripslashes(trim($post[0]['message'])), ENT_COMPAT, LANG_CHARSET));
|
$temp_array = array('body' => (function_exists('serendipity_specialchars') ? serendipity_specialchars(stripslashes(trim($post[0]['message']))) : htmlspecialchars(stripslashes(trim($post[0]['message'])), ENT_COMPAT, LANG_CHARSET)));
|
||||||
serendipity_plugin_api::hook_event('frontend_display', $temp_array);
|
serendipity_plugin_api::hook_event('frontend_display', $temp_array);
|
||||||
$post['message'] = trim($temp_array['body']);
|
$post['message'] = trim($temp_array['body']);
|
||||||
} else {
|
} else {
|
||||||
$post['message'] = nl2br((function_exists('serendipity_specialchars') ? serendipity_specialchars(stripslashes(trim($post[0]['message']))) : htmlspecialchars(stripslashes(trim($post[0]['message'])), ENT_COMPAT, LANG_CHARSET));
|
$post['message'] = nl2br((function_exists('serendipity_specialchars') ? serendipity_specialchars(stripslashes(trim($post[0]['message']))) : htmlspecialchars(stripslashes(trim($post[0]['message'])), ENT_COMPAT, LANG_CHARSET)));
|
||||||
}
|
}
|
||||||
$serendipity['smarty']->assign(
|
$serendipity['smarty']->assign(
|
||||||
array(
|
array(
|
||||||
|
@ -1773,7 +1773,7 @@ class serendipity_event_forum extends serendipity_event {
|
||||||
if ($this->get_config('unreg_nomarkups') && (!isset($posts[$a]['authorid']) || intval($posts[$a]['authorid']) <= 0)) {
|
if ($this->get_config('unreg_nomarkups') && (!isset($posts[$a]['authorid']) || intval($posts[$a]['authorid']) <= 0)) {
|
||||||
$posts[$a]['message'] = nl2br((function_exists('serendipity_specialchars') ? serendipity_specialchars(trim(stripslashes($posts[$a]['message']))) : htmlspecialchars(trim(stripslashes($posts[$a]['message'])), ENT_COMPAT, LANG_CHARSET)));
|
$posts[$a]['message'] = nl2br((function_exists('serendipity_specialchars') ? serendipity_specialchars(trim(stripslashes($posts[$a]['message']))) : htmlspecialchars(trim(stripslashes($posts[$a]['message'])), ENT_COMPAT, LANG_CHARSET)));
|
||||||
} else {
|
} else {
|
||||||
$temp_array = array('body' => (function_exists('serendipity_specialchars') ? serendipity_specialchars(trim(stripslashes($posts[$a]['message']))) : htmlspecialchars(trim(stripslashes($posts[$a]['message'])), ENT_COMPAT, LANG_CHARSET)))));
|
$temp_array = array('body' => (function_exists('serendipity_specialchars') ? serendipity_specialchars(trim(stripslashes($posts[$a]['message']))) : htmlspecialchars(trim(stripslashes($posts[$a]['message'])), ENT_COMPAT, LANG_CHARSET)));
|
||||||
serendipity_plugin_api::hook_event('frontend_display', $temp_array);
|
serendipity_plugin_api::hook_event('frontend_display', $temp_array);
|
||||||
$posts[$a]['message'] = trim($temp_array['body']);
|
$posts[$a]['message'] = trim($temp_array['body']);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue