summaryrefslogtreecommitdiff
path: root/classes/api.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-01-22 22:36:16 +0400
committerAndrew Dolgov <[email protected]>2013-01-22 22:36:16 +0400
commit50832719563627e958f92ba2a2b7b8c2b4fed47e (patch)
tree5ccf2153d1b56c966a6d33352b91c9cd573aa064 /classes/api.php
parent87d7e8507a4a41c4e0d7a4f2d54fe48f3a6f72cb (diff)
move some more functions out of functions.php; fix opml.php failing due to redeclared autoload
Diffstat (limited to 'classes/api.php')
-rw-r--r--classes/api.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/api.php b/classes/api.php
index 04be5c7a8..9b9a5bbe5 100644
--- a/classes/api.php
+++ b/classes/api.php
@@ -439,7 +439,7 @@ class API extends Handler {
$url = db_escape_string(strip_tags($_REQUEST["url"]));
$content = db_escape_string(strip_tags($_REQUEST["content"]));
- if (create_published_article($this->link, $title, $url, $content, "", $_SESSION["uid"])) {
+ if (Article::create_published_article($this->link, $title, $url, $content, "", $_SESSION["uid"])) {
print $this->wrap(self::STATUS_OK, array("status" => 'OK'));
} else {
print $this->wrap(self::STATUS_ERR, array("error" => 'Publishing failed'));