mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 05:25:56 +00:00
add basic local plugin uninstaller
This commit is contained in:
@@ -623,4 +623,10 @@ class PluginHost {
|
||||
user_error("get_public_method_url: requested method '$method' of '" . get_class($sender) . "' is private.");
|
||||
}
|
||||
}
|
||||
|
||||
function is_local(Plugin $plugin) {
|
||||
$ref = new ReflectionClass(get_class($plugin));
|
||||
|
||||
return basename(dirname(dirname($ref->getFileName()))) == "plugins.local";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user