From 48ed517e8dd52fdb8b00739808d0820cefc42e8d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 19 Apr 2013 08:40:19 +0400 Subject: [PATCH] pref_prefs: remove second argument from the constructor --- classes/pluginhost.php | 2 +- classes/pref/prefs.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/pluginhost.php b/classes/pluginhost.php index 1c490b1e..44056d26 100644 --- a/classes/pluginhost.php +++ b/classes/pluginhost.php @@ -36,7 +36,7 @@ class PluginHost { const KIND_SYSTEM = 2; const KIND_USER = 3; - function __construct($ignored = false) { + function __construct() { $this->dbh = Db::get(); $this->storage = $_SESSION["plugin_storage"]; diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index b2e7edf0..8bc36720 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -11,8 +11,8 @@ class Pref_Prefs extends Handler_Protected { return array_search($method, $csrf_ignored) !== false; } - function __construct($link, $args) { - parent::__construct($link, $args); + function __construct($args) { + parent::__construct($args); $this->pref_sections = array( 1 => __('General'), -- 2.39.5