Skip to content

Commit

Permalink
pref_prefs: remove second argument from the constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Dolgov committed Apr 19, 2013
1 parent b20b6af commit 48ed517
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion classes/pluginhost.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"];

Expand Down
4 changes: 2 additions & 2 deletions classes/pref/prefs.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ function csrf_ignore($method) {
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'),
Expand Down

0 comments on commit 48ed517

Please sign in to comment.