mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 17:35:56 +00:00
functions.php: Fixed some mild errors.
fetch_file_contents()
using $updated when it was not defined - commented it out
update_rss_feed_real()
was also using $updated, undefined
and had a inconsistent return, added return false;
lookup_user_id($link, $user)
was using $login for the SELECT not $user
format_headline_subtoolbar()
used $search_q before it was assigned to, re-ordered the code
format_article()
The 3rd arg "$feed_id" was never used in the function, it was set in the function
Verified (and modified as needed) function calls in backend.php (5 Usages) and in modules/backend-rpc,php (1 usage)
printTagCloud()
Before ksort($tags) add a check for count($tags) == 0 return
replace depreciated split() calls with explode()
backend.php
replace depreciated split() calls with explode()
modules/backed-rpc.php
replace depreciated split() calls with explode()
in handle_rpc_request(), separate asort() from join(), asort() does not return an array.
This fixes a problem where a new tag is added to an entry, but doesn't show up after clicking on save. User must do a screen refresh.
A PHP error msg was being returned in the JSON response.
.gitignore
Make sure Mac OS X .DS_Store & PHPStorm project files (.idea/) are not included
This commit is contained in:
@@ -205,7 +205,7 @@
|
||||
case "view":
|
||||
|
||||
$id = db_escape_string($_REQUEST["id"]);
|
||||
$cids = split(",", db_escape_string($_REQUEST["cids"]));
|
||||
$cids = explode(",", db_escape_string($_REQUEST["cids"]));
|
||||
$mode = db_escape_string($_REQUEST["mode"]);
|
||||
$omode = db_escape_string($_REQUEST["omode"]);
|
||||
|
||||
@@ -217,7 +217,7 @@
|
||||
if ($mode == "") {
|
||||
array_push($articles, format_article($link, $id, false));
|
||||
} else if ($mode == "zoom") {
|
||||
array_push($articles, format_article($link, $id, false, true, true));
|
||||
array_push($articles, format_article($link, $id, true, true));
|
||||
} else if ($mode == "raw") {
|
||||
if ($_REQUEST['html']) {
|
||||
header("Content-Type: text/html");
|
||||
@@ -384,7 +384,7 @@
|
||||
$articles = array();
|
||||
|
||||
foreach ($topmost_article_ids as $id) {
|
||||
array_push($articles, format_article($link, $id, $feed, false));
|
||||
array_push($articles, format_article($link, $id, false));
|
||||
}
|
||||
|
||||
$reply['articles'] = $articles;
|
||||
|
||||
Reference in New Issue
Block a user