diff --git a/php/api.php b/php/api.php index 52598af..75b2fdf 100755 --- a/php/api.php +++ b/php/api.php @@ -49,7 +49,7 @@ if (!empty($_POST['function'])||!empty($_GET['function'])) { # Init plugins $plugins = explode(';', $settings['plugins']); - $plugins = new Plugins($plugins, $database); + $plugins = new Plugins($plugins, $database, $settings); # Escape foreach(array_keys($_POST) as $key) $_POST[$key] = mysqli_real_escape_string($database, urldecode($_POST[$key])); diff --git a/php/modules/Plugins.php b/php/modules/Plugins.php index 253b136..cc86f7e 100644 --- a/php/modules/Plugins.php +++ b/php/modules/Plugins.php @@ -16,7 +16,7 @@ class Plugins implements \SplSubject { public $action = null; public $args = null; - public function __construct($files, $database) { + public function __construct($files, $database, $settings) { if (!isset($files)) return false;