mirror of
https://github.com/Froxlor/Froxlor.git
synced 2024-09-21 10:27:29 +00:00
additionally check for lib/userdata.inc.php in Froxlor\System\Plugin
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
parent
c9327eb4c1
commit
a1ca02ed41
@ -128,7 +128,7 @@ class Plugin
|
||||
*/
|
||||
public function isInstalled(): bool
|
||||
{
|
||||
$installed = Settings::Get($this->getPluginBasename() . '.is_installed');
|
||||
$installed = file_exists(Froxlor::getInstallDir() . '/lib/userdata.inc.php') && Settings::Get($this->getPluginBasename() . '.is_installed');
|
||||
return !empty($installed);
|
||||
}
|
||||
|
||||
@ -138,7 +138,7 @@ class Plugin
|
||||
*/
|
||||
public function isActive(): bool
|
||||
{
|
||||
$active = Settings::Get($this->getPluginBasename() . '.is_active');
|
||||
$active = file_exists(Froxlor::getInstallDir() . '/lib/userdata.inc.php') && Settings::Get($this->getPluginBasename() . '.is_active');
|
||||
return !empty($active);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user