mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 20:45:55 +00:00
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.
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
class Dlg extends Protected_Handler {
|
||||
private $param;
|
||||
|
||||
function before() {
|
||||
if (parent::before()) {
|
||||
function before($method) {
|
||||
if (parent::before($method)) {
|
||||
header("Content-Type: text/xml; charset=utf-8");
|
||||
$this->param = db_escape_string($_REQUEST["param"]);
|
||||
print "<dlg>";
|
||||
|
||||
Reference in New Issue
Block a user