Skip to content

Commit

Permalink
fix(pwa): 馃悰 declare before adding array
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair3149 committed Jan 17, 2023
1 parent e78ebd7 commit 68cb9b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/Api/ApiWebappManifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ private function getShortcuts() {
$specialPages = [ 'Search', 'Randompage', 'RecentChanges' ];

foreach ( $specialPages as $specialPage ) {
$shortcut = [];
$title = SpecialPage::getSafeTitleFor( $specialPage );
$shortcut['name'] = $title->getBaseText();
$shortcut['url'] = $title->getLocalURL();
Expand Down

0 comments on commit 68cb9b6

Please sign in to comment.