Formatting pass

This commit is contained in:
Matthew Barbour 2021-01-18 08:37:32 -06:00
parent bb891f3bd0
commit 32927aea3d
3 changed files with 2 additions and 5 deletions

View File

@ -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";

View File

@ -13,6 +13,5 @@ class UserConfigTest extends ShimmiePHPUnitTestCase
$this->get_page('user_config');
$this->assert_title(self::OPTIONS_BLOCK_TITLE);
$this->log_out();
}
}

View File

@ -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");
}