1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-18 02:16:03 +01:00

pages.php: fix whitespace indentation

This commit is contained in:
Zankaria 2024-09-20 22:48:08 +02:00 committed by Zankaria
parent 767b8fd8c3
commit 0e8909ac4e

View File

@ -11,11 +11,11 @@ defined('TINYBOARD') or exit;
function _link_or_copy(string $target, string $link): bool { function _link_or_copy(string $target, string $link): bool {
if (!link($target, $link)) { if (!link($target, $link)) {
error_log("Failed to link() $target to $link. Falling back to copy()"); error_log("Failed to link() $target to $link. Falling back to copy()");
return copy($target, $link); return copy($target, $link);
} }
return true; return true;
} }
function mod_page($title, $template, $args, $mod, $subtitle = false) { function mod_page($title, $template, $args, $mod, $subtitle = false) {
@ -1092,7 +1092,7 @@ function mod_bans(Context $ctx) {
foreach ($unban as $id) { foreach ($unban as $id) {
Bans::delete($id, true, $mod['boards'], true); Bans::delete($id, true, $mod['boards'], true);
} }
Vichan\Functions\Theme\rebuild_themes('bans'); Vichan\Functions\Theme\rebuild_themes('bans');
header('Location: ?/bans', true, $config['redirect_http']); header('Location: ?/bans', true, $config['redirect_http']);
return; return;
} }
@ -1595,7 +1595,7 @@ function mod_move(Context $ctx, $originBoard, $postID) {
'op' => false 'op' => false
); );
$spost['body'] = $spost['body_nomarkup'] = sprintf($config['mod']['shadow_mesage'], '>>>/' . $targetBoard . '/' . $newID); $spost['body'] = $spost['body_nomarkup'] = sprintf($config['mod']['shadow_mesage'], '>>>/' . $targetBoard . '/' . $newID);
markup($spost['body']); markup($spost['body']);