pref_prefs: remove second argument from the constructor

This commit is contained in:
Andrew Dolgov 2013-04-19 08:40:19 +04:00
parent b20b6af0dc
commit 48ed517e8d
2 changed files with 3 additions and 3 deletions

View 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"];

View 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'),