diff --git a/emhttp/plugins/dynamix.plugin.manager/scripts/plugin b/emhttp/plugins/dynamix.plugin.manager/scripts/plugin index 24ed3a274..c816976f3 100755 --- a/emhttp/plugins/dynamix.plugin.manager/scripts/plugin +++ b/emhttp/plugins/dynamix.plugin.manager/scripts/plugin @@ -730,7 +730,7 @@ if ($method == 'check') { if ($installed_plugin_file === false) { write("plugin: not installed\n"); // run hook scripts for post processing - post_hooks($error); + post_hooks(1); done(1); } $installed_pluginURL = plugin('pluginURL', $installed_plugin_file, $error); diff --git a/emhttp/plugins/dynamix/include/Wrappers.php b/emhttp/plugins/dynamix/include/Wrappers.php index 8d446563b..c5092b52e 100644 --- a/emhttp/plugins/dynamix/include/Wrappers.php +++ b/emhttp/plugins/dynamix/include/Wrappers.php @@ -45,7 +45,7 @@ function my_parse_ini_string($text, $sections=false, $scanner=INI_SCANNER_NORMAL } function my_parse_ini_file($file, $sections=false, $scanner=INI_SCANNER_NORMAL) { - return my_parse_ini_string(file_get_contents($file),$sections,$scanner); + return my_parse_ini_string(@file_get_contents($file),$sections,$scanner); } function parse_plugin_cfg($plugin, $sections=false, $scanner=INI_SCANNER_NORMAL) {