浏览代码

Adding "user_name_order" setting in order to use a string like "%t %f %l" to define the order of the title, firstname and lastname from a user see BT#5768

Julio Montoya 12 年之前
父节点
当前提交
24f452d622
共有 3 个文件被更改,包括 293 次插入213 次删除
  1. 288 211
      main/inc/lib/internationalization.lib.php
  2. 2 1
      main/install/db_main.sql
  3. 3 1
      main/install/migrate-db-1.9.0-1.10.0-pre.sql

文件差异内容过多而无法显示
+ 288 - 211
main/inc/lib/internationalization.lib.php


+ 2 - 1
main/install/db_main.sql

@@ -908,6 +908,7 @@ VALUES
 ('gradebook_show_percentage_in_reports',NULL,'radio','Gradebook','true','GradebookShowPercentageInReportsTitle','GradebookShowPercentageInReportsComment',NULL,NULL, 0),
 ('session_page_enabled', NULL, 'radio', 'Session', 'true', 'SessionPageEnabledTitle', 'SessionPageEnabledComment', NULL, NULL, 1),
 ('settings_latest_update', NULL, NULL, NULL, '', '','', NULL, NULL, 0),
+('user_name_order', NULL, 'textfield', 'Platform', '', 'UserNameOrderTitle', 'UserNameOrderComment', NULL, NULL, 1),
 ('chamilo_database_version', NULL, 'textfield', NULL, 'xxx','DatabaseVersion','', NULL, NULL, 0);
 
 UNLOCK TABLES;
@@ -3080,4 +3081,4 @@ CREATE TABLE branch_transaction (
 );
 
 -- Do not move this
-UPDATE settings_current SET selected_value = '1.10.0.21309' WHERE variable = 'chamilo_database_version';
+UPDATE settings_current SET selected_value = '1.10.0.21455' WHERE variable = 'chamilo_database_version';

+ 3 - 1
main/install/migrate-db-1.9.0-1.10.0-pre.sql

@@ -132,5 +132,7 @@ ALTER TABLE session_rel_course MODIFY COLUMN nbr_users int unsigned NOT NULL def
 ALTER TABLE track_e_exercices MODIFY COLUMN session_id int unsigned NOT NULL default 0;
 ALTER TABLE track_e_exercices MODIFY COLUMN exe_exo_id int unsigned NOT NULL default 0;
 
+INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('user_name_order', NULL, 'textfield', 'Platform', '', 'UserNameOrderTitle', 'UserNameOrderComment', NULL, NULL, 1);
+
 -- Do not move this
-UPDATE settings_current SET selected_value = '1.10.0.21309' WHERE variable = 'chamilo_database_version';
+UPDATE settings_current SET selected_value = '1.10.0.21455' WHERE variable = 'chamilo_database_version';

部分文件因为文件数量过多而无法显示