mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 03:15:56 +00:00
move API to classes/
This commit is contained in:
16
public.php
16
public.php
@@ -48,16 +48,14 @@
|
||||
|
||||
$handler = new Public_Handler($link, $_REQUEST);
|
||||
|
||||
if ($handler) {
|
||||
if ($handler->before()) {
|
||||
if ($method && method_exists($handler, $method)) {
|
||||
$handler->$method();
|
||||
} else if (method_exists($handler, 'index')) {
|
||||
$handler->index();
|
||||
}
|
||||
$handler->after();
|
||||
return;
|
||||
if ($handler->before($method)) {
|
||||
if ($method && method_exists($handler, $method)) {
|
||||
$handler->$method();
|
||||
} else if (method_exists($handler, 'index')) {
|
||||
$handler->index();
|
||||
}
|
||||
$handler->after();
|
||||
return;
|
||||
}
|
||||
|
||||
header("Content-Type: text/plain");
|
||||
|
||||
Reference in New Issue
Block a user