anonymize plugin standard files

This commit is contained in:
Jean-Christian Denis 2023-01-07 16:22:42 +01:00
parent fc2a12cae8
commit 914722068d
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951
6 changed files with 24 additions and 20 deletions

View file

@ -12,6 +12,9 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
if (Dotclear\Plugin\improve\Admin::init()) { $admin = implode('\\', ['Dotclear', 'Plugin', basename(__DIR__), 'Admin']);
Dotclear\Plugin\improve\Admin::process(); if ($admin::init()) {
return $admin::process();
} }
return null;

View file

@ -12,11 +12,8 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
if (!defined('DC_CONTEXT_MODULE')) { $config = implode('\\', ['Dotclear', 'Plugin', basename(__DIR__), 'Config']);
return null; if ($config::init()) {
} $config::process();
$config::render();
if (Dotclear\Plugin\improve\Config::init()) {
Dotclear\Plugin\improve\Config::process();
Dotclear\Plugin\improve\Config::render();
} }

View file

@ -12,8 +12,9 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
if (Dotclear\Plugin\improve\Install::init()) { $install = implode('\\', ['Dotclear', 'Plugin', basename(__DIR__), 'Install']);
return Dotclear\Plugin\improve\Install::process(); if ($install::init()) {
return $install::process();
} }
return null; return null;

View file

@ -12,10 +12,11 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
if (!class_exists('Dotclear\Plugin\improve\Prepend')) { $prepend = implode('\\', ['Dotclear', 'Plugin', basename(__DIR__), 'Prepend']);
require __DIR__ . DIRECTORY_SEPARATOR . 'inc' . DIRECTORY_SEPARATOR . 'Prepend.php'; if (!class_exists($prepend)) {
require implode(DIRECTORY_SEPARATOR, [__DIR__, 'inc', 'Prepend.php']);
if (Dotclear\Plugin\improve\Prepend::init()) { if ($prepend::init()) {
Dotclear\Plugin\improve\Prepend::process(); $prepend::process();
} }
} }

View file

@ -12,6 +12,7 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
if (Dotclear\Plugin\improve\Uninstall::init()) { $uninstall = implode('\\', ['Dotclear', 'Plugin', basename(__DIR__), 'Uninstall']);
Dotclear\Plugin\improve\Uninstall::process($this); if ($uninstall::init()) {
$uninstall::process($this);
} }

View file

@ -12,7 +12,8 @@
*/ */
declare(strict_types=1); declare(strict_types=1);
if (Dotclear\Plugin\improve\Manage::init()) { $manage = implode('\\', ['Dotclear', 'Plugin', basename(__DIR__), 'Manage']);
Dotclear\Plugin\improve\Manage::process(); if ($manage::init()) {
Dotclear\Plugin\improve\Manage::render(); $manage::process();
$manage::render();
} }