We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4abbcfb commit 687cdcfCopy full SHA for 687cdcf
1 file changed
app/Plugin.php
@@ -17,8 +17,8 @@ class Plugin {
17
function __construct() {
18
19
// Get plugin properties and meta data
20
- $plugin_obj = new PluginTools();
21
- $plugin_data = $plugin_obj->get_current_plugin_data( null, ARRAY_A );
+ $plugin_obj = new PluginTools( __DIR__ );
+ $plugin_data = $plugin_obj->get_current_plugin_data( ARRAY_A );
22
23
self::$config = new ConfigRegistry( $plugin_data['path'] . 'plugin.json' );
24
self::$config = self::$config->merge( new ConfigRegistry( [ 'plugin' => $plugin_data ] ) );
0 commit comments