From 2011665b7e3d0e7e46a754017033e9e1c9d55547 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 23 Apr 2023 11:43:10 +0200 Subject: [PATCH] use latest Database namespace --- src/BackendBehaviors.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/BackendBehaviors.php b/src/BackendBehaviors.php index 0f78992..b96bf44 100644 --- a/src/BackendBehaviors.php +++ b/src/BackendBehaviors.php @@ -14,13 +14,15 @@ declare(strict_types=1); namespace Dotclear\Plugin\fac; -use cursor; use ArrayObject; use dcCore; use dcPage; use dcPostsActions; -use dcRecord; use dcSettings; +use Dotclear\Database\{ + Cursor, + MetaRecord +}; use Dotclear\Helper\Html\Html; use Dotclear\Helper\Html\Form\{ Checkbox, @@ -166,9 +168,9 @@ class BackendBehaviors * * @param ArrayObject $main_items Main items * @param ArrayObject $sidebar_items Sidebar items - * @param null|dcRecord $post Post record or null + * @param null|MetaRecord $post Post record or null */ - public static function adminPostFormItems(ArrayObject $main_items, ArrayObject $sidebar_items, ?dcRecord $post): void + public static function adminPostFormItems(ArrayObject $main_items, ArrayObject $sidebar_items, ?MetaRecord $post): void { if (is_null(dcCore::app()->blog) || !dcCore::app()->blog->settings->get(My::id())->get('active')) { return; @@ -199,10 +201,10 @@ class BackendBehaviors /** * Save linked feed * - * @param cursor $cur Current post cursor + * @param Cursor $cur Current post Cursor * @param integer $post_id Post id */ - public static function adminAfterPostSave(cursor $cur, int $post_id): void + public static function adminAfterPostSave(Cursor $cur, int $post_id): void { if (!isset($_POST['fac_url']) || !isset($_POST['fac_format'])) {