diff options
author | Andrew Dolgov <[email protected]> | 2009-04-30 11:23:38 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-04-30 11:23:38 +0400 |
commit | 4a596be6976e61962b8ac6053b3917906b384bb7 (patch) | |
tree | 4867edede986eed4a18b27d059ff6208a894cf82 /mobile/tt-rss.php | |
parent | 849b382582b052abe9dee827c32b92f695405c9a (diff) |
mobile: allow marking articles as unread (clses #240)
Diffstat (limited to 'mobile/tt-rss.php')
-rw-r--r-- | mobile/tt-rss.php | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/mobile/tt-rss.php b/mobile/tt-rss.php index db7129042..b291f46dd 100644 --- a/mobile/tt-rss.php +++ b/mobile/tt-rss.php @@ -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"); } } |