Adding show_document_preview configuration should fix #3904

skala
Julio Montoya 14 years ago
parent dc8f5cdb0a
commit 695a349126
  1. 5
      main/inc/lib/userportal.lib.php
  2. 7
      main/install/db_main.sql
  3. 8
      main/install/migrate-db-1.8.8-1.9.0-pre.sql

@ -22,7 +22,10 @@ class IndexManager {
$this->home = api_get_home_path();
$this->user_id = api_get_user_id();
$this->load_directories_preview = true;
$this->load_directories_preview = false;
if (api_get_setting('show_documents_preview') == 'true') {
$this->load_directories_preview = true;
}
}

@ -824,7 +824,8 @@ VALUES
('enable_nanogong',NULL,'radio','Tools','false','EnableNanogongTitle','EnableNanogongComment',NULL,NULL, 0),
('filter_terms',NULL,'textarea','Security','','FilterTermsTitle','FilterTermsComment',NULL,NULL, 0),
('header_extra_content', NULL, 'textarea', 'Tracking', '', 'HeaderExtraContentTitle', 'HeaderExtraContentComment', NULL, NULL, 1),
('chamilo_database_version',NULL,'textfield',NULL, '1.9.0.15605','DokeosDatabaseVersion','', NULL, NULL, 0);
('show_documents_preview', NULL, 'radio', 'Tools', 'false', 'ShowDocumentPreviewTitle', 'ShowDocumentPreviewComment', NULL, NULL, 1),
('chamilo_database_version',NULL,'textfield',NULL, '1.9.0.15650','DokeosDatabaseVersion','', NULL, NULL, 0);
UNLOCK TABLES;
/*!40000 ALTER TABLE settings_current ENABLE KEYS */;
@ -1090,7 +1091,9 @@ VALUES
('enable_quiz_scenario', 'true', 'Yes'),
('enable_quiz_scenario', 'false', 'No'),
('enable_nanogong','true','Yes'),
('enable_nanogong','false','No');
('enable_nanogong','false','No'),
('show_documents_preview', 'true', 'Yes'),
('show_documents_preview', 'false', 'No');
UNLOCK TABLES;

@ -13,7 +13,7 @@
-- This first part is for the main database
-- xxMAINxx
UPDATE settings_current SET selected_value = '1.9.0.15605' WHERE variable = 'chamilo_database_version';
UPDATE settings_current SET selected_value = '1.9.0.15650' WHERE variable = 'chamilo_database_version';
INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('filter_terms', NULL, 'textarea', 'Security', '', 'FilterTermsTitle', 'FilterTermsComment', NULL, NULL, 0);
@ -22,6 +22,12 @@ INSERT INTO settings_current (variable, subkey, type, category, selected_value,
ALTER TABLE personal_agenda ADD COLUMN all_day INTEGER NOT NULL DEFAULT 0;
ALTER TABLE sys_calendar ADD COLUMN all_day INTEGER NOT NULL DEFAULT 0;
INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('show_documents_preview', NULL, 'radio', 'Tools', 'false', 'ShowDocumentPreviewTitle', 'ShowDocumentPreviewComment', NULL, NULL, 1);
INSERT INTO settings_options (variable, value, display_text) VALUES ('show_documents_preview', 'true', 'Yes');
INSERT INTO settings_options (variable, value, display_text) VALUES ('show_documents_preview', 'false', 'No');
show_documents_preview
-- xxSTATSxx
ALTER TABLE track_e_exercices ADD COLUMN questions_to_check TEXT NOT NULL DEFAULT '';
--CREATE TABLE track_filtered_terms (id int, user_id int, course_id int, session_id int, tool_id char(12), filtered_term varchar(255), created_at datetime);

Loading…
Cancel
Save