1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-26 14:21:28 +00:00

move some more functions out of functions.php; fix opml.php failing due to redeclared autoload

This commit is contained in:
Andrew Dolgov
2013-01-22 22:36:16 +04:00
parent 87d7e8507a
commit 5083271956
8 changed files with 101 additions and 106 deletions

View File

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