diff options
author | John Keeping <[email protected]> | 2012-07-05 19:43:44 +0100 |
---|---|---|
committer | John Keeping <[email protected]> | 2012-07-05 19:43:44 +0100 |
commit | 17f9d2003ac3f47db316630decd07143992ed16f (patch) | |
tree | 36d843026f8bfbd62f1134e357b40073d02be22a /classes/pref_users.php | |
parent | 68916212b2541344f487354a5ec1e7895aa1370a (diff) |
Make Handler::before() hierarchy consistent
In API, the before() method (inherited from Handler) takes a $method
argument, although this is not declared for the before method() in
handler. PHP in strict mode treats this as an error.
Since call sites already pass the $method argument, change
Handler::before() and the before() method in all other subclasses to
take this argument.
Diffstat (limited to 'classes/pref_users.php')
-rw-r--r-- | classes/pref_users.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/pref_users.php b/classes/pref_users.php index 94ee270d3..8f8f819f3 100644 --- a/classes/pref_users.php +++ b/classes/pref_users.php @@ -1,7 +1,7 @@ <?php class Pref_Users extends Protected_Handler { - function before() { - if (parent::before()) { + function before($method) { + if (parent::before($method)) { if ($_SESSION["access_level"] < 10) { print __("Your access level is insufficient to open this tab."); return false; |