Browse Source

pref_prefs: remove second argument from the constructor

Andrew Dolgov 11 years ago
parent
commit
48ed517e8d
2 changed files with 3 additions and 3 deletions
  1. 1 1
      classes/pluginhost.php
  2. 2 2
      classes/pref/prefs.php

+ 1 - 1
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"];
 

+ 2 - 2
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'),