summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-19 08:40:19 +0400
committerAndrew Dolgov <[email protected]>2013-04-19 08:40:19 +0400
commit48ed517e8dd52fdb8b00739808d0820cefc42e8d (patch)
tree1ab46202a5ebbf6d21588a0a9247994fd2afe95f /classes
parentb20b6af0dc94c2e9ec7ad25f65ee1d88547d6c5c (diff)
pref_prefs: remove second argument from the constructor
Diffstat (limited to 'classes')
-rw-r--r--classes/pluginhost.php2
-rw-r--r--classes/pref/prefs.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/classes/pluginhost.php b/classes/pluginhost.php
index 1c490b1ef..44056d262 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 b2e7edf03..8bc367201 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'),