Skip to content

Commit

Permalink
Avoid helper usage
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed Jan 28, 2025
1 parent 5bede03 commit 3eab5a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion config/areas/lab/views.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

use Kirby\Cms\App;
use Kirby\Panel\Lab\Category;
use Kirby\Panel\Lab\Docs;

Expand Down Expand Up @@ -130,7 +131,7 @@
$example = $category->example($id, $tab);
$props = $example->props();
$vue = $example->vue();
$compiler = option('panel.vue.compiler', true);
$compiler = App::instance()->option('panel.vue.compiler', true);

if ($docs = $props['docs'] ?? null) {
if (
Expand Down
2 changes: 1 addition & 1 deletion src/Panel/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ public function url(): string
*/
public function vue(bool $production = true): string
{
$script = option('panel.vue.compiler', true) === true ? 'vue' : 'vue.runtime';
$script = $this->kirby->option('panel.vue.compiler', true) === true ? 'vue' : 'vue.runtime';

if ($production === false) {
return $this->url . '/node_modules/vue/dist/' . $script . '.js';
Expand Down

0 comments on commit 3eab5a8

Please sign in to comment.