upgrade to Dotclear 2.27

This commit is contained in:
Jean-Christian Denis 2023-08-06 19:21:47 +02:00
parent 9942c80ccf
commit b2e74ff29d
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951
2 changed files with 25 additions and 6 deletions

21
src/My.php Normal file
View file

@ -0,0 +1,21 @@
<?php
/**
* @brief cleanURLs, a plugin for Dotclear 2
*
* @package Dotclear
* @subpackage Plugin
*
* @author Pierre Rudloff and contributors
*
* @copyright Jean-Christian Denis
* @copyright GPL-3.0 https://www.gnu.org/licenses/gpl-3.0.html
*/
declare(strict_types=1);
namespace Dotclear\Plugin\cleanURLs;
use Dotclear\Module\MyPlugin;
class My extends MyPlugin
{
}

View file

@ -15,20 +15,18 @@ declare(strict_types=1);
namespace Dotclear\Plugin\cleanURLs; namespace Dotclear\Plugin\cleanURLs;
use dcCore; use dcCore;
use dcNsProcess; use Dotclear\Core\Process;
class Prepend extends dcNsProcess class Prepend extends Process
{ {
public static function init(): bool public static function init(): bool
{ {
static::$init = true; return self::status(My::checkContext(My::PREPEND));
return static::$init;
} }
public static function process(): bool public static function process(): bool
{ {
if (!static::$init) { if (!self::status()) {
return false; return false;
} }