mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-08 13:59:16 +00:00
score: get correct classes for rows/score icons on the client
This commit is contained in:
@@ -254,10 +254,7 @@ class Article extends Handler_Protected {
|
||||
|
||||
$sth->execute(array_merge([$score], $ids, [$_SESSION['uid']]));
|
||||
|
||||
print json_encode(array("id" => $ids,
|
||||
"score" => (int)$score,
|
||||
"score_class" => get_score_class($score),
|
||||
"score_pic" => get_score_pic($score)));
|
||||
print json_encode(["id" => $ids, "score" => (int)$score]);
|
||||
}
|
||||
|
||||
function getScore() {
|
||||
@@ -269,9 +266,7 @@ class Article extends Handler_Protected {
|
||||
|
||||
$score = $row['score'];
|
||||
|
||||
print json_encode(array("id" => $id,
|
||||
"score" => (int)$score,
|
||||
"score_pic" => get_score_pic($score)));
|
||||
print json_encode(["id" => $id, "score" => (int)$score]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -344,9 +344,6 @@ class Feeds extends Handler_Protected {
|
||||
|
||||
$score = $line["score"];
|
||||
|
||||
$line["score_pic"] = get_score_pic($score);
|
||||
$line["score_class"] = get_score_class($score);
|
||||
|
||||
if ($line["tag_cache"])
|
||||
$tags = explode(",", $line["tag_cache"]);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user