Skip to content

Commit 6f0d1ae

Browse files
authored
Use FQN for App class
1 parent 451a90b commit 6f0d1ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/docs/3_reference/6_system/1_options/0_panel/reference-article.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ return [
6060
'label' => 'Notes',
6161
'link' => 'pages/notes',
6262
'current' => function (string $current): bool {
63-
$path = App::instance()->request()->path()->toString();
63+
$path = Kirby\Cms\App::instance()->request()->path()->toString();
6464
return Str::contains($path, 'pages/notes');
6565
}
6666
],
@@ -88,7 +88,7 @@ When you add a menu entry that links to a page or file, you probably also want t
8888
// the links of all your custom menu entries
8989
$links = ['pages/notes', 'pages/albums'];
9090

91-
$path = App::instance()->request()->path();
91+
$path = Kirby\Cms\App::instance()->request()->path();
9292
return A::every($links, fn ($link) => Str::contains($path, $link))
9393
},
9494
],

0 commit comments

Comments
 (0)