fix whitespaces and tabs
This commit is contained in:
@ -235,7 +235,6 @@ function serveCategory($matches) {
|
||||
|
||||
$serendipity['GET']['action'] = 'read';
|
||||
|
||||
|
||||
$_args = locateHiddenVariables($serendipity['uriArguments']);
|
||||
|
||||
if (!$is_multicat) {
|
||||
@ -321,6 +320,7 @@ function serveFeed() {
|
||||
|
||||
function serveEntry($matches) {
|
||||
global $serendipity;
|
||||
|
||||
$serendipity['view'] = 'entry';
|
||||
|
||||
if (isset($serendipity['GET']['id'])) {
|
||||
@ -333,12 +333,14 @@ function serveEntry($matches) {
|
||||
serendipity_rememberComment();
|
||||
|
||||
if (!empty($serendipity['POST']['submit']) && !isset($_REQUEST['serendipity']['csuccess'])) {
|
||||
|
||||
$comment['url'] = $serendipity['POST']['url'];
|
||||
$comment['comment'] = trim($serendipity['POST']['comment']);
|
||||
$comment['name'] = $serendipity['POST']['name'];
|
||||
$comment['email'] = $serendipity['POST']['email'];
|
||||
$comment['subscribe'] = $serendipity['POST']['subscribe'];
|
||||
$comment['parent_id'] = $serendipity['POST']['replyTo'];
|
||||
|
||||
if (!empty($comment['comment'])) {
|
||||
if (serendipity_saveComment($serendipity['POST']['entry_id'], $comment, 'NORMAL')) {
|
||||
$sc_url = ($_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . (strstr($_SERVER['REQUEST_URI'], '?') ? '&' : '?') . 'serendipity[csuccess]=' . (isset($serendipity['csuccess']) ? $serendipity['csuccess'] : 'true');
|
||||
|
Reference in New Issue
Block a user