fix namespace on disabled plugin
This commit is contained in:
parent
3a70196636
commit
4463766a78
@ -13,6 +13,12 @@
|
|||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
$uninstall = implode('\\', ['Dotclear', 'Plugin', basename(__DIR__), 'Uninstall']);
|
$uninstall = implode('\\', ['Dotclear', 'Plugin', basename(__DIR__), 'Uninstall']);
|
||||||
|
|
||||||
|
// cope with disabled plugin
|
||||||
|
if (!class_exists($uninstall)) {
|
||||||
|
require implode(DIRECTORY_SEPARATOR, [__DIR__, 'inc', 'Uninstall.php']);
|
||||||
|
}
|
||||||
|
|
||||||
if ($uninstall::init()) {
|
if ($uninstall::init()) {
|
||||||
$uninstall::process($this);
|
$uninstall::process($this);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user