From c172704a0dcb0b236d34913100cde9c53ac59529 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 23 Apr 2023 14:52:40 +0200 Subject: [PATCH] use Cursor namespace --- src/CleanURLs.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CleanURLs.php b/src/CleanURLs.php index cfd6a3a..4d381dd 100644 --- a/src/CleanURLs.php +++ b/src/CleanURLs.php @@ -14,8 +14,8 @@ declare(strict_types=1); namespace Dotclear\Plugin\cleanURLs; -use cursor; use dcBlog; +use Dotclear\Database\Cursor; /** * Class to remove problematic characters from URLs @@ -240,9 +240,9 @@ class CleanURLs * Clean post URLs from diacritics and punctuation. * * @param dcBlog $blog The blog instance - * @param cursor $cur The post cursor + * @param Cursor $cur The post Cursor * */ - public static function cleanPost(dcBlog $blog, cursor $cur): void + public static function cleanPost(dcBlog $blog, Cursor $cur): void { $cur->setField('post_url', self::cleanStr($cur->getField('post_url'))); }