1
0

fix whitespaces and tabs

This commit is contained in:
Ian
2015-12-20 17:23:11 +01:00
parent 2c7cd731d9
commit 3eb59e9052
2 changed files with 9 additions and 7 deletions

View File

@ -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');