1
0
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:
Andrew Dolgov
2011-12-13 15:40:42 +04:00
parent d043c0069e
commit de8260cb10
4 changed files with 374 additions and 367 deletions

View File

@@ -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");