From 96ca889265664ffb0978fb8ba41364523c73a415 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 11 Jan 2025 09:18:17 +0100 Subject: [PATCH] fix typo --- src/Prepend.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Prepend.php b/src/Prepend.php index ece6bbe..3800288 100644 --- a/src/Prepend.php +++ b/src/Prepend.php @@ -50,7 +50,7 @@ class Prepend extends Process // tweak frontend if ($status) { App::behavior()->addBehaviors([ - 'coreBlogBeforeGetPostsAddingParameters' => self::getPosts(...), + 'coreBlogBeforeGetPostsAddingParameters' => self::coreBlogBeforeGetPostsAddingParameters(...), ]); } @@ -60,10 +60,10 @@ class Prepend extends Process /** * @param array|ArrayObject $params Parameters */ - public static function getPosts(ArrayObject $params, string|null $arg = null): void + public static function coreBlogBeforeGetPostsAddingParameters(ArrayObject $params, string|null $arg = null): void { if (App::task()->checkContext('FRONTEND') && App::auth()->check(My::PERMISSION_SUBSCRIBER, App::blog()->id()) === true) { - if (!isset($params['psot_status'])) { + if (!isset($params['post_status'])) { $params['post_status'] = []; } if (!is_array($params['post_status'])) {