17f9d2003a
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.
8 lines
139 B
PHP
8 lines
139 B
PHP
<?php
|
|
class Protected_Handler extends Handler {
|
|
|
|
function before($method) {
|
|
return parent::before($method) && $_SESSION['uid'];
|
|
}
|
|
}
|
|
?>
|