diff options
Diffstat (limited to 'app/Core/PluginLoader.php')
| -rw-r--r-- | app/Core/PluginLoader.php | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/app/Core/PluginLoader.php b/app/Core/PluginLoader.php index 6030ded4..c7c254f7 100644 --- a/app/Core/PluginLoader.php +++ b/app/Core/PluginLoader.php @@ -21,21 +21,14 @@ class PluginLoader extends Base const TABLE_SCHEMA = 'plugin_schema_versions'; /** - * Plugin folder - * - * @var string - */ - const PATH = __DIR__.'/../../plugins'; - - /** * Scan plugin folder and load plugins * * @access public */ public function scan() { - if (file_exists(self::PATH)) { - $dir = new DirectoryIterator(self::PATH); + if (file_exists(__DIR__.'/../../plugins')) { + $dir = new DirectoryIterator(__DIR__.'/../../plugins'); foreach ($dir as $fileinfo) { if (! $fileinfo->isDot() && $fileinfo->isDir()) { |
