Added $settings var for plugins
This commit is contained in:
parent
6f8e877fce
commit
7e2936325f
@ -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]));
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user