Skip to content
This repository was archived by the owner on Sep 23, 2023. It is now read-only.

Commit 14fbfcc

Browse files
committed
Fix undefined variable when not logged in
1 parent afd4824 commit 14fbfcc

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

index.php

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,27 @@
33

44
include "header.php";
55

6+
$presetLabels = [
7+
'all' => [
8+
'title' => 'All',
9+
],
10+
'wikimedia' => [
11+
'title' => 'Wikimedia',
12+
'description' => 'Most skins and extensions installed on most Wikimedia wikis, based on MediaWiki.org',
13+
],
14+
'tarball' => [
15+
'title' => 'Tarball',
16+
'description' => 'Skins and extensions included in the official MediaWiki release',
17+
],
18+
'minimal' => [
19+
'title' => 'Minimal',
20+
'description' => 'Only MediaWiki and default skin with anti-spam configuration',
21+
],
22+
'custom' => [
23+
'title' => 'Custom',
24+
]
25+
];
26+
627
$canCreate = !$useOAuth || $user;
728
if ( !$canCreate ) {
829
echo oauth_signin_prompt();
@@ -44,27 +65,6 @@
4465
include_once 'DetailsFieldLayout.php';
4566
include_once 'PatchSelectWidget.php';
4667

47-
$presetLabels = [
48-
'all' => [
49-
'title' => 'All',
50-
],
51-
'wikimedia' => [
52-
'title' => 'Wikimedia',
53-
'description' => 'Most skins and extensions installed on most Wikimedia wikis, based on MediaWiki.org',
54-
],
55-
'tarball' => [
56-
'title' => 'Tarball',
57-
'description' => 'Skins and extensions included in the official MediaWiki release',
58-
],
59-
'minimal' => [
60-
'title' => 'Minimal',
61-
'description' => 'Only MediaWiki and default skin with anti-spam configuration',
62-
],
63-
'custom' => [
64-
'title' => 'Custom',
65-
]
66-
];
67-
6868
$presetOptions = array_map( static function ( $data, $preset ) {
6969
$option = [
7070
'data' => $data

0 commit comments

Comments
 (0)