diff --git a/admin.php b/admin.php index 94ad555..786dd9e 100644 --- a/admin.php +++ b/admin.php @@ -139,7 +139,7 @@ $commenters = commentersAll(); $latestComments = commentsLatest(80); $welcomeText = settingGet('welcome_text', 'Добро пожаловать в галерею. Выберите раздел слева, чтобы посмотреть фотографии.'); $adminMode = (string)($_GET['mode'] ?? 'media'); -if (!in_array($adminMode, ['media', 'comments'], true)) { +if (!in_array($adminMode, ['media', 'comments', 'welcome'], true)) { $adminMode = 'media'; } @@ -273,6 +273,7 @@ function nextUniqueCodeName(string $base): string