mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-19 22:51:28 +00:00
fix blank character after opening bracket in function calls
This commit is contained in:
@@ -41,13 +41,13 @@ class Digest extends Plugin implements IHandler {
|
||||
}
|
||||
|
||||
function digestgetcontents() {
|
||||
$article_id = db_escape_string( $_REQUEST['article_id']);
|
||||
$article_id = db_escape_string($_REQUEST['article_id']);
|
||||
|
||||
$result = db_query( "SELECT content,title,link,marked,published
|
||||
$result = db_query("SELECT content,title,link,marked,published
|
||||
FROM ttrss_entries, ttrss_user_entries
|
||||
WHERE id = '$article_id' AND ref_id = id AND owner_uid = ".$_SESSION['uid']);
|
||||
|
||||
$content = sanitize( db_fetch_result($result, 0, "content"));
|
||||
$content = sanitize(db_fetch_result($result, 0, "content"));
|
||||
$title = strip_tags(db_fetch_result($result, 0, "title"));
|
||||
$article_url = htmlspecialchars(db_fetch_result($result, 0, "link"));
|
||||
$marked = sql_bool_to_bool(db_fetch_result($result, 0, "marked"));
|
||||
@@ -55,15 +55,15 @@ class Digest extends Plugin implements IHandler {
|
||||
|
||||
print json_encode(array("article" =>
|
||||
array("id" => $article_id, "url" => $article_url,
|
||||
"tags" => get_article_tags( $article_id),
|
||||
"tags" => get_article_tags($article_id),
|
||||
"marked" => $marked, "published" => $published,
|
||||
"title" => $title, "content" => $content)));
|
||||
}
|
||||
|
||||
function digestupdate() {
|
||||
$feed_id = db_escape_string( $_REQUEST['feed_id']);
|
||||
$offset = db_escape_string( $_REQUEST['offset']);
|
||||
$seq = db_escape_string( $_REQUEST['seq']);
|
||||
$feed_id = db_escape_string($_REQUEST['feed_id']);
|
||||
$offset = db_escape_string($_REQUEST['offset']);
|
||||
$seq = db_escape_string($_REQUEST['seq']);
|
||||
|
||||
if (!$feed_id) $feed_id = -4;
|
||||
if (!$offset) $offset = 0;
|
||||
@@ -72,18 +72,18 @@ class Digest extends Plugin implements IHandler {
|
||||
|
||||
$reply['seq'] = $seq;
|
||||
|
||||
$headlines = API::api_get_headlines( $feed_id, 30, $offset,
|
||||
$headlines = API::api_get_headlines($feed_id, 30, $offset,
|
||||
'', ($feed_id == -4), true, false, "unread", "updated DESC", 0, 0);
|
||||
|
||||
$reply['headlines'] = array();
|
||||
$reply['headlines']['title'] = getFeedTitle( $feed_id);
|
||||
$reply['headlines']['title'] = getFeedTitle($feed_id);
|
||||
$reply['headlines']['content'] = $headlines;
|
||||
|
||||
print json_encode($reply);
|
||||
}
|
||||
|
||||
function digestinit() {
|
||||
$tmp_feeds = API::api_get_feeds( -4, true, false, 0);
|
||||
$tmp_feeds = API::api_get_feeds(-4, true, false, 0);
|
||||
|
||||
$params = array();
|
||||
$feeds = array();
|
||||
|
||||
Reference in New Issue
Block a user