Skip to content

Commit 45b0050

Browse files
committed
fix: hide podcast area when stats disabled
1 parent 60648c1 commit 45b0050

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/areas.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
namespace mauricerenck\Podcaster;
44

5+
6+
if (option('mauricerenck.podcaster.statsInternal', false) === false) {
7+
return null;
8+
}
9+
510
return [
611
'podcasts' => function ($kirby) {
712
return [

0 commit comments

Comments
 (0)