mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-24 22:35:45 +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' ];
|
||||
|
||||
foreach ( $specialPages as $specialPage ) {
|
||||
$shortcut = [];
|
||||
$title = SpecialPage::getSafeTitleFor( $specialPage );
|
||||
$shortcut['name'] = $title->getBaseText();
|
||||
$shortcut['url'] = $title->getLocalURL();
|
||||
|
|
Loading…
Reference in a new issue