fix whitespaces and tabs
This commit is contained in:
@ -235,7 +235,6 @@ function serveCategory($matches) {
|
|||||||
|
|
||||||
$serendipity['GET']['action'] = 'read';
|
$serendipity['GET']['action'] = 'read';
|
||||||
|
|
||||||
|
|
||||||
$_args = locateHiddenVariables($serendipity['uriArguments']);
|
$_args = locateHiddenVariables($serendipity['uriArguments']);
|
||||||
|
|
||||||
if (!$is_multicat) {
|
if (!$is_multicat) {
|
||||||
@ -321,6 +320,7 @@ function serveFeed() {
|
|||||||
|
|
||||||
function serveEntry($matches) {
|
function serveEntry($matches) {
|
||||||
global $serendipity;
|
global $serendipity;
|
||||||
|
|
||||||
$serendipity['view'] = 'entry';
|
$serendipity['view'] = 'entry';
|
||||||
|
|
||||||
if (isset($serendipity['GET']['id'])) {
|
if (isset($serendipity['GET']['id'])) {
|
||||||
@ -333,12 +333,14 @@ function serveEntry($matches) {
|
|||||||
serendipity_rememberComment();
|
serendipity_rememberComment();
|
||||||
|
|
||||||
if (!empty($serendipity['POST']['submit']) && !isset($_REQUEST['serendipity']['csuccess'])) {
|
if (!empty($serendipity['POST']['submit']) && !isset($_REQUEST['serendipity']['csuccess'])) {
|
||||||
|
|
||||||
$comment['url'] = $serendipity['POST']['url'];
|
$comment['url'] = $serendipity['POST']['url'];
|
||||||
$comment['comment'] = trim($serendipity['POST']['comment']);
|
$comment['comment'] = trim($serendipity['POST']['comment']);
|
||||||
$comment['name'] = $serendipity['POST']['name'];
|
$comment['name'] = $serendipity['POST']['name'];
|
||||||
$comment['email'] = $serendipity['POST']['email'];
|
$comment['email'] = $serendipity['POST']['email'];
|
||||||
$comment['subscribe'] = $serendipity['POST']['subscribe'];
|
$comment['subscribe'] = $serendipity['POST']['subscribe'];
|
||||||
$comment['parent_id'] = $serendipity['POST']['replyTo'];
|
$comment['parent_id'] = $serendipity['POST']['replyTo'];
|
||||||
|
|
||||||
if (!empty($comment['comment'])) {
|
if (!empty($comment['comment'])) {
|
||||||
if (serendipity_saveComment($serendipity['POST']['entry_id'], $comment, 'NORMAL')) {
|
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');
|
$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