From 2b38f79c86ad9199f39fa8efac1c0e89c6f3a465 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 21 Mar 2009 22:58:32 +0300 Subject: update translations --- modules/backend-rpc.php | 29 +++++------------------------ modules/pref-feeds.php | 31 +++++++++++-------------------- 2 files changed, 16 insertions(+), 44 deletions(-) (limited to 'modules') diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php index 8b22bf850..afcd82d3f 100644 --- a/modules/backend-rpc.php +++ b/modules/backend-rpc.php @@ -87,9 +87,8 @@ } if ($subop == "publ") { - $pub = $_REQUEST["pub"]; - $id = db_escape_string($_REQUEST["id"]); - $note = trim(strip_tags(db_escape_string($_REQUEST["note"]))); + $pub = $_GET["pub"]; + $id = db_escape_string($_GET["id"]); if ($pub == "1") { $pub = "true"; @@ -97,36 +96,18 @@ $pub = "false"; } - if ($note != 'undefined') { - $note_qpart = "note = '$note',"; - } - // FIXME this needs collision testing - $result = db_query($link, "UPDATE ttrss_user_entries SET - $note_qpart - published = $pub + $result = db_query($link, "UPDATE ttrss_user_entries SET published = $pub WHERE ref_id = '$id' AND owner_uid = " . $_SESSION["uid"]); - - print ""; - - print ""; + print ""; getGlobalCounters($link); getLabelCounters($link); if (get_pref($link, 'ENABLE_FEED_CATS')) { getCategoryCounters($link); } - print ""; - - if ($note != 'undefined') { - $note_size = strlen($note); - print ""; - print ""; - print ""; - } - - print ""; + print ""; return; } diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 36a0e4d32..fae1fbe2f 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -702,12 +702,8 @@ if (file_exists($icons_dir . "/$id.ico")) { unlink($icons_dir . "/$id.ico"); } - - ccache_remove($link, $id, $_SESSION["uid"]); - } else { label_remove($link, -11-$id, $_SESSION["uid"]); - ccache_remove($link, -11-$id, $_SESSION["uid"]); } } } @@ -996,9 +992,6 @@ if ($num_feeds == 0) { db_query($link, "DELETE FROM ttrss_feed_categories WHERE id = '$id' AND owner_uid = " . $_SESSION["uid"]); - - ccache_remove($link, $id, $_SESSION["uid"], true); - } else { print format_warning(__("Unable to delete non empty feed categories.")); @@ -1376,28 +1369,26 @@ print ""; -- cgit v1.2.3