From b2514ae4feaaa0a6fcac346f0cd813a539ec12e8 Mon Sep 17 00:00:00 2001 From: Ian Date: Fri, 31 Jul 2015 12:34:19 +0200 Subject: [PATCH] minors to 8d65c37 --- .../serendipity_event_autoupdate.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/serendipity_event_autoupdate/serendipity_event_autoupdate.php b/serendipity_event_autoupdate/serendipity_event_autoupdate.php index facb08c2..f72e8a66 100644 --- a/serendipity_event_autoupdate/serendipity_event_autoupdate.php +++ b/serendipity_event_autoupdate/serendipity_event_autoupdate.php @@ -114,7 +114,7 @@ class serendipity_event_autoupdate extends serendipity_event { break; case 'backend_sidebar_entries_event_display_update': - if (! (serendipity_checkPermission('siteConfiguration') || serendipity_checkPermission('blogConfiguration'))) { + if (!(serendipity_checkPermission('siteConfiguration') || serendipity_checkPermission('blogConfiguration'))) { return; } if (!extension_loaded('zip')) { @@ -249,7 +249,7 @@ EOS; } } else { $this->show_message('

Unpacking the update failed

'); - if (true === $this->cleanTemplatesC($nv, false) ) { + if (true === $this->cleanTemplatesC($nv, false)) { $this->show_message('

Cleaning up the failed unpack directory!

'); } $this->show_message('

Please reload this page by F5 to have another try upgrading your Blog successfully!

'); @@ -516,7 +516,7 @@ EOS; foreach ($files as $file) { $target = $serendipity['serendipityPath'] . substr($file, 12); - if ((! is_writable($target)) && file_exists($target) ) { + if ((!is_writable($target)) && file_exists($target)) { $notWriteable[] = $target; } } @@ -601,13 +601,13 @@ EOS; EOS; - if($terminate) { + if ($terminate) { echo << EOS; } - if($terminate) die(); + if ($terminate) die(); } /** @@ -626,8 +626,8 @@ EOS; if (die(''."\n \n")) { return; } else { - if(!headers_sent()) { - if(header('Location: http://' . $_SERVER['HTTP_HOST'] . $serendipity['serendipityHTTPPath'])) exit; + if (!headers_sent()) { + if (header('Location: http://' . $_SERVER['HTTP_HOST'] . $serendipity['serendipityHTTPPath'])) exit; } else { echo '