mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-28 16:21:11 +00:00
fix(pwa): 🐛 declare before adding array
This commit is contained in:
parent
e78ebd7165
commit
68cb9b6c68
|
@ -133,6 +133,7 @@ class ApiWebappManifest extends ApiBase {
|
||||||
$specialPages = [ 'Search', 'Randompage', 'RecentChanges' ];
|
$specialPages = [ 'Search', 'Randompage', 'RecentChanges' ];
|
||||||
|
|
||||||
foreach ( $specialPages as $specialPage ) {
|
foreach ( $specialPages as $specialPage ) {
|
||||||
|
$shortcut = [];
|
||||||
$title = SpecialPage::getSafeTitleFor( $specialPage );
|
$title = SpecialPage::getSafeTitleFor( $specialPage );
|
||||||
$shortcut['name'] = $title->getBaseText();
|
$shortcut['name'] = $title->getBaseText();
|
||||||
$shortcut['url'] = $title->getLocalURL();
|
$shortcut['url'] = $title->getLocalURL();
|
||||||
|
|
Loading…
Reference in a new issue