From 32927aea3df6fa6c0fdc51047374bf9b16abd186 Mon Sep 17 00:00:00 2001 From: Matthew Barbour Date: Mon, 18 Jan 2021 08:37:32 -0600 Subject: [PATCH] Formatting pass --- ext/cron_uploader/main.php | 4 +--- ext/user_config/test.php | 1 - ext/view/main.php | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/ext/cron_uploader/main.php b/ext/cron_uploader/main.php index e95a35ec..cfbaad90 100644 --- a/ext/cron_uploader/main.php +++ b/ext/cron_uploader/main.php @@ -122,10 +122,8 @@ class CronUploader extends Extension if (self::$IMPORT_RUNNING) { $all = $user_config->get_bool(CronUploaderConfig::INCLUDE_ALL_LOGS); - if($event->priority >= $user_config->get_int(CronUploaderConfig::LOG_LEVEL) && + if ($event->priority >= $user_config->get_int(CronUploaderConfig::LOG_LEVEL) && ($event->section==self::NAME || $all)) { - - $output = "[" . date('Y-m-d H:i:s') . "] " . ($all ? '[' . $event->section . '] ' : '') . "[" . LOGGING_LEVEL_NAMES[$event->priority] . "] " . $event->message; echo $output . "\r\n"; diff --git a/ext/user_config/test.php b/ext/user_config/test.php index bc3ffba7..bc4b0b43 100644 --- a/ext/user_config/test.php +++ b/ext/user_config/test.php @@ -13,6 +13,5 @@ class UserConfigTest extends ShimmiePHPUnitTestCase $this->get_page('user_config'); $this->assert_title(self::OPTIONS_BLOCK_TITLE); $this->log_out(); - } } diff --git a/ext/view/main.php b/ext/view/main.php index ca4b79c6..552088fb 100644 --- a/ext/view/main.php +++ b/ext/view/main.php @@ -83,7 +83,7 @@ class ViewImage extends Extension } else { $query = null; } - $page->set_redirect(make_link("post/view/$image_id", null, $query)); + $page->set_redirect(make_link("post/view/$image_id", null, $query)); } else { $this->theme->display_error(403, "Post Locked", "An admin has locked this post"); }