use Cursor namespace

This commit is contained in:
Jean-Christian Paul Denis 2023-04-23 14:52:40 +02:00
parent af5990dccd
commit c172704a0d
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -14,8 +14,8 @@ declare(strict_types=1);
namespace Dotclear\Plugin\cleanURLs; namespace Dotclear\Plugin\cleanURLs;
use cursor;
use dcBlog; use dcBlog;
use Dotclear\Database\Cursor;
/** /**
* Class to remove problematic characters from URLs * Class to remove problematic characters from URLs
@ -240,9 +240,9 @@ class CleanURLs
* Clean post URLs from diacritics and punctuation. * Clean post URLs from diacritics and punctuation.
* *
* @param dcBlog $blog The blog instance * @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'))); $cur->setField('post_url', self::cleanStr($cur->getField('post_url')));
} }