1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-16 00:25:56 +00:00

mobile: properly save preferences

This commit is contained in:
Andrew Dolgov
2010-01-11 14:06:19 +03:00
parent fbaca24658
commit e9105eb50d
6 changed files with 56 additions and 42 deletions

View File

@@ -4,16 +4,20 @@
/* TODO replace with interface to db-prefs */
function mobile_pref_toggled($link, $id) {
if ($_SESSION["mobile-prefs"][$id]) return "true";
if (get_pref($link, "_MOBILE_$id"))
return "true";
else
return "";
}
function mobile_get_pref($link, $id) {
return $_SESSION["mobile-prefs"][$id];
//return $_SESSION["mobile-prefs"][$id];
return get_pref($link, "_MOBILE_$id");
}
function mobile_set_pref($link, $id, $value) {
$_SESSION["mobile-prefs"][$id] = $value;
//$_SESSION["mobile-prefs"][$id] = $value;
return set_pref($link, "_MOBILE_$id", $value);
}
function mobile_feed_has_icon($id) {