2022-12-21 14:40:28 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @brief improve, a plugin for Dotclear 2
|
|
|
|
*
|
|
|
|
* @package Dotclear
|
|
|
|
* @subpackage Plugin
|
|
|
|
*
|
2022-12-21 14:51:43 +00:00
|
|
|
* @author Jean-Christian Denis and contributors
|
2022-12-21 14:40:28 +00:00
|
|
|
*
|
|
|
|
* @copyright Jean-Christian Denis
|
|
|
|
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
|
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2023-01-07 15:22:42 +00:00
|
|
|
$uninstall = implode('\\', ['Dotclear', 'Plugin', basename(__DIR__), 'Uninstall']);
|
2023-01-16 22:47:34 +00:00
|
|
|
|
|
|
|
// cope with disabled plugin
|
|
|
|
if (!class_exists($uninstall)) {
|
|
|
|
require implode(DIRECTORY_SEPARATOR, [__DIR__, 'inc', 'Uninstall.php']);
|
|
|
|
}
|
|
|
|
|
2023-01-07 15:22:42 +00:00
|
|
|
if ($uninstall::init()) {
|
|
|
|
$uninstall::process($this);
|
2022-12-21 14:40:28 +00:00
|
|
|
}
|