1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-10 16:01:33 +00:00

mobile: allow marking articles as unread (clses #240)

This commit is contained in:
Andrew Dolgov
2009-04-30 11:23:38 +04:00
parent 849b382582
commit 4a596be697
4 changed files with 29 additions and 5 deletions
+11 -3
View File
@@ -67,8 +67,12 @@
$sop = db_escape_string($_GET["sop"]);
if ($sop && $go == "view") {
$a_id = db_escape_string($_GET["id"]);
if ($sop) {
if ($go == "view") {
$a_id = db_escape_string($_GET["id"]);
} elseif ($go == "vf") {
$a_id = db_escape_string($_GET["aid"]);
}
if ($a_id) {
@@ -80,7 +84,11 @@
toggleMarked($link, $a_id);
}
$query_string = preg_replace("/&sop=t[sp]/", "", $_SERVER["QUERY_STRING"]);
if ($sop == "mu") {
markUnread($link, $a_id);
}
$query_string = str_replace("&sop=$sop", "", $_SERVER["QUERY_STRING"]);
header("Location: tt-rss.php?$query_string");
}
}