@@ -7497,7 +7497,7 @@ public static function replaceTermsInContent(string $search, string $replace): a
7497
7497
{
7498
7498
$ replacements = [
7499
7499
Database::get_course_table (TABLE_QUIZ_TEST ) => [
7500
- 'iid ' => ['title ' , 'description ' , 'sound ' , ' text_when_finished_failure ' ],
7500
+ 'iid ' => ['title ' , 'description ' , 'sound ' ],
7501
7501
],
7502
7502
Database::get_course_table (TABLE_QUIZ_QUESTION ) => [
7503
7503
'iid ' => ['question ' , 'description ' ],
@@ -7659,7 +7659,7 @@ public static function replaceTermsInContent(string $search, string $replace): a
7659
7659
'id ' => ['name ' ],
7660
7660
],
7661
7661
Database::get_main_table (TABLE_MAIN_COURSE_REQUEST ) => [
7662
- 'iid ' => ['description ' , 'title ' , 'objetives ' , 'target_audience ' ],
7662
+ 'id ' => ['description ' , 'title ' , 'objetives ' , 'target_audience ' ],
7663
7663
],
7664
7664
'course_type ' => [
7665
7665
'id ' => ['description ' ],
@@ -7782,16 +7782,16 @@ public static function replaceTermsInContent(string $search, string $replace): a
7782
7782
'id ' => ['teacher_comment ' ],
7783
7783
],
7784
7784
Database::get_main_table (TABLE_STATISTIC_TRACK_E_DEFAULT ) => [
7785
- 'id ' => ['default_value ' ],
7785
+ 'default_id ' => ['default_value ' ],
7786
7786
],
7787
7787
Database::get_main_table (TABLE_STATISTIC_TRACK_E_EXERCISES ) => [
7788
- 'id ' => ['data_tracking ' , 'questions_to_check ' ],
7788
+ 'exe_id ' => ['data_tracking ' , 'questions_to_check ' ],
7789
7789
],
7790
7790
Database::get_main_table (TABLE_STATISTIC_TRACK_E_ITEM_PROPERTY ) => [
7791
7791
'id ' => ['content ' ],
7792
7792
],
7793
7793
'track_e_open ' => [
7794
- 'id ' => ['open_remote_host ' , 'open_agent ' , 'open_referer ' ],
7794
+ 'open_id ' => ['open_remote_host ' , 'open_agent ' , 'open_referer ' ],
7795
7795
],
7796
7796
Database::get_main_table (TABLE_TRACK_STORED_VALUES ) => [
7797
7797
'id ' => ['sv_value ' ],
@@ -7816,6 +7816,10 @@ public static function replaceTermsInContent(string $search, string $replace): a
7816
7816
];
7817
7817
}
7818
7818
7819
+ if (api_get_configuration_value ('exercise_text_when_finished_failure ' )) {
7820
+ $ replacements [Database::get_course_table (TABLE_QUIZ_TEST )]['iid ' ][] = 'text_when_finished_failure ' ;
7821
+ }
7822
+
7819
7823
$ changes = array_map (
7820
7824
fn ($ table ) => 0 ,
7821
7825
$ replacements
0 commit comments