]> git.wh0rd.org - tt-rss.git/commitdiff
pref_prefs: remove second argument from the constructor
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 19 Apr 2013 04:40:19 +0000 (08:40 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 19 Apr 2013 04:40:19 +0000 (08:40 +0400)
classes/pluginhost.php
classes/pref/prefs.php

index 1c490b1ef926eb5e483eff20c152cacde1df199c..44056d262e315421d23b6f838fbfc868085ab6db 100644 (file)
@@ -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"];
 
index b2e7edf03d8797ec403a653ed20624ed7a0ff922..8bc3672013bdeaa80b53ab16943521fd13c3e877 100644 (file)
@@ -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'),