]> git.wh0rd.org - tt-rss.git/blobdiff - backend.php
remove twitter-specific code
[tt-rss.git] / backend.php
index b670451a48722d233cd1c64f03d85bb3d90fce1d..8e6ff6ced4ff3fa60c9cbfc4641d332643117be3 100644 (file)
        $update_methods = array(
                0   => __("Default"),
                1   => __("Magpie"),
-               2   => __("SimplePie"),
-               3   => __("Twitter OAuth"));
+               2   => __("SimplePie"));
 
        if (DEFAULT_UPDATE_METHOD == "1") {
                $update_methods[0] .= ' (SimplePie)';
        if (class_exists($op)) {
                $handler = new $op($link, $_REQUEST);
 
-               if ($handler) {
+               if ($handler && is_subclass_of($handler, 'Handler')) {
                        if (validate_csrf($csrf_token) || $handler->csrf_ignore($method)) {
                                if ($handler->before($method)) {
                                        if ($method && method_exists($handler, $method)) {