From: Andrew Dolgov Date: Fri, 19 Apr 2013 04:40:19 +0000 (+0400) Subject: pref_prefs: remove second argument from the constructor X-Git-Tag: 1.7.9~25^2~132 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=48ed517e8dd52fdb8b00739808d0820cefc42e8d;p=tt-rss.git pref_prefs: remove second argument from the constructor --- 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'),