private $last_registered;
private static $instance;
- const API_VERSION = 1;
+ const API_VERSION = 2;
const HOOK_ARTICLE_BUTTON = 1;
const HOOK_ARTICLE_FILTER = 2;
$this->plugins[$name] = $plugin;
}
+ // needed for compatibility with API 1
function get_link() {
- header("Content-type: text/plain");
-
- print "One of the plugins called obsolete host method get_link(). This plugin needs to be updated or removed.\n\n";
-
- print "List of plugins loaded: " . join(" ,", array_keys($this->plugins)) . "\n\n";
-
- print "Last plugin initialized (possible culprit): " . $this->last_registered . "\n";
- die;
+ return false;
}
function get_dbh() {
return $article;
}
+
+ function api_version() {
+ return 2;
+ }
+
}
?>
return $article;
}
+
+ function api_version() {
+ return 2;
+ }
}
?>
return $article;
}
+
+ function api_version() {
+ return 2;
+ }
+
}
?>
return $article;
}
+
+ function api_version() {
+ return 2;
+ }
+
}
?>
return $article;
}
+
+ function api_version() {
+ return 2;
+ }
+
}
?>
}
return $url;
}
+
+ function api_version() {
+ return 2;
+ }
+
}
?>
return "ERROR: ".__('Old password is incorrect.');
}
}
+
+ function api_version() {
+ return 2;
+ }
+
}
?>
return false;
}
+
+ function api_version() {
+ return 2;
+ }
+
}
?>
print "</div>"; #pane
}
-
}
+ function api_version() {
+ return 2;
+ }
+
}
?>
return $rv;
}
+
+ function api_version() {
+ return 2;
+ }
+
}
?>
}
function init($host) {
+ $this->link = $host->get_link();
$this->host = $host;
$host->add_handler("digest", "*", $this);
print json_encode($params);
}
+ function api_version() {
+ return 2;
+ }
+
}
?>
print json_encode(array("url" => $url, "id" => $id));
}
+ function api_version() {
+ return 2;
+ }
+
}
?>
print "</div>"; #pane
}
+
+ function api_version() {
+ return 2;
+ }
+
}
?>
function example_testmethod() {
return array(API::STATUS_OK, array("current_time" => time()));
}
+
+ function api_version() {
+ return 2;
+ }
+
}
?>
return $article;
}
+
+ function api_version() {
+ return 2;
+ }
+
}
?>
_debug("I'm a little feed short and stout, here's my title: " . $feed->get_title());
_debug("... here's my link element: " . $feed->get_link());
}
+
+ function api_version() {
+ return 2;
+ }
+
}
?>
return true;
}
+ function api_version() {
+ return 2;
+ }
+
}
?>
return $qfh_ret;
}
+
+ function api_version() {
+ return 2;
+ }
+
}
?>
print "</div>"; #pane
}
+
+ function api_version() {
+ return 2;
+ }
+
}
?>
$hotkeys["(40)|down"] = "article_scroll_down";
return $hotkeys;
+ }
+ function api_version() {
+ return 2;
}
+
}
?>
}
+ function api_version() {
+ return 2;
+ }
}
?>
print json_encode(array("hash" => $hash));
}
+ function api_version() {
+ return 2;
+ }
}
?>
print "</ul>";
}
+ function api_version() {
+ return 2;
+ }
}
?>
//return;
}
+ function api_version() {
+ return 2;
+ }
+
}
?>
return $marked_pic;
}
+
+ function api_version() {
+ return 2;
+ }
+
}
?>
}
+ function api_version() {
+ return 2;
+ }
}
?>
"raw_length" => mb_strlen($note)));
}
+ function api_version() {
+ return 2;
+ }
+
}
?>
echo __("Configuration saved.");
}
+ function api_version() {
+ return 2;
+ }
+
}
?>
print "</div>";
}
+ function api_version() {
+ return 2;
+ }
}
?>
$hotkeys["k"] = "prev_feed";
return $hotkeys;
+ }
+ function api_version() {
+ return 2;
}
+
}
?>
}
}
+ function api_version() {
+ return 2;
+ }
+
}
?>