cache_invalidate("F:" + feed);
}
- if (getInitParam("theme") == "" && getInitParam("hide_feedlist")) {
+ if (getInitParam("theme") == "" && getInitParam("hide_feedlist") == 1) {
Element.hide("feeds-holder");
// Effect.Fade('feeds-holder', {duration : 0.2,
// queue: { position: 'end', scope: 'FLFADEQ', limit: 1 }});
if (getInitParam("theme") == "") {
setTimeout("hide_footer()", 5000);
- if (getInitParam("hide_feedlist")) {
+ if (getInitParam("hide_feedlist") == 1) {
init_hidden_feedlist();
}
}
print "<param key=\"hide_read_shows_special\" value=\"" .
(int) get_pref($link, "HIDE_READ_SHOWS_SPECIAL") . "\"/>";
- if (defined('_HIDDEN_FL_TEST')) {
- print "<param key=\"hide_feedlist\" value=\"1\"/>";
- }
+ print "<param key=\"hide_feedlist\" value=\"" .
+ (int) get_pref($link, "HIDE_FEEDLIST") . "\"/>";
print "</init-params>";
}
require_once "functions.php";
define('EXPECTED_CONFIG_VERSION', 15);
- define('SCHEMA_VERSION', 32);
+ define('SCHEMA_VERSION', 33);
if (!file_exists("config.php")) {
print __("<b>Fatal Error</b>: You forgot to copy
create table ttrss_version (schema_version int not null) TYPE=InnoDB;
-insert into ttrss_version values (32);
+insert into ttrss_version values (33);
create table ttrss_enclosures (id serial not null primary key,
content_url text not null,
insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('HIDE_READ_SHOWS_SPECIAL', 1, 'true', 'Show special feeds when hiding read feeds',3);
+insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('HIDE_FEEDLIST', 1, 'false', 'Hide feedlist',2, 'This option hides feedlist and allows it to be toggled on the fly, useful for small screens.');
+
create table ttrss_user_prefs (
owner_uid integer not null,
pref_name varchar(250),
create table ttrss_version (schema_version int not null);
-insert into ttrss_version values (32);
+insert into ttrss_version values (33);
create table ttrss_enclosures (id serial not null primary key,
content_url text not null,
insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('HIDE_READ_SHOWS_SPECIAL', 1, 'true', 'Show special feeds when hiding read feeds',3);
+insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('HIDE_FEEDLIST', 1, 'false', 'Hide feedlist',2, 'This option hides feedlist and allows it to be toggled on the fly, useful for small screens.');
+
create table ttrss_user_prefs (
owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE,
pref_name varchar(250) not null references ttrss_prefs(pref_name) ON DELETE CASCADE,
--- /dev/null
+insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('HIDE_FEEDLIST', 1, 'false', 'Hide feedlist',2, 'This option hides feedlist and allows it to be toggled on the fly, useful for small screens.');
+
+update ttrss_version set schema_version = 33;
--- /dev/null
+insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('HIDE_FEEDLIST', 1, 'false', 'Hide feedlist',2, 'This option hides feedlist and allows it to be toggled on the fly, useful for small screens.');
+
+update ttrss_version set schema_version = 33;