Restablish used setting in database (error in previous commit) - refs #7792

1.10.x
Yannick Warnier 10 years ago
parent 1fa4021da4
commit 558e1da729
  1. 24
      app/Migrations/Schema/V110/Version20150813200000.php
  2. 3
      main/install/data.sql

@ -26,8 +26,7 @@ class Version20150813200000 extends AbstractMigrationChamilo
$deleteOptions->expr()->in(
'o.variable',
[
'math_mimetex',
'enabled_asciisvg'
'math_mimetex'
]
)
);
@ -38,8 +37,7 @@ class Version20150813200000 extends AbstractMigrationChamilo
$deleteSettings->expr()->in(
's.variable',
[
'math_mimetex',
'enabled_asciisvg'
'math_mimetex'
]
)
);
@ -69,23 +67,5 @@ class Version20150813200000 extends AbstractMigrationChamilo
1 => ['value' => 'false', 'text' => 'No']
]
);
$this->addSettingCurrent(
'enabled_asciisvg',
null,
'radio',
'Editor',
'false',
'AsciiSvgTitle',
'AsciiSvgComment',
null,
null,
1,
false,
true,
[
0 => ['value' => 'true', 'text' => 'Yes'],
1 => ['value' => 'false', 'text' => 'No']
]
);
}
}

@ -170,6 +170,7 @@ VALUES
('send_email_to_admin_when_create_course',NULL,'radio','Platform','false','SendEmailToAdminTitle','SendEmailToAdminComment',NULL,NULL, 1),
('go_to_course_after_login',NULL,'radio','Course','false','GoToCourseAfterLoginTitle','GoToCourseAfterLoginComment',NULL,NULL, 0),
('math_asciimathML',NULL,'radio','Editor','false','MathASCIImathMLTitle','MathASCIImathMLComment',NULL,NULL, 0),
('enabled_asciisvg',NULL,'radio','Editor','false','AsciiSvgTitle','AsciiSvgComment',NULL,NULL, 0),
('include_asciimathml_script',NULL,'radio','Editor','false','IncludeAsciiMathMlTitle','IncludeAsciiMathMlComment',NULL,NULL, 0),
('youtube_for_students',NULL,'radio','Editor','true','YoutubeForStudentsTitle','YoutubeForStudentsComment',NULL,NULL, 0),
('block_copy_paste_for_students',NULL,'radio','Editor','false','BlockCopyPasteForStudentsTitle','BlockCopyPasteForStudentsComment',NULL,NULL, 0),
@ -477,6 +478,8 @@ VALUES
('go_to_course_after_login','false','No'),
('math_asciimathML','true','Yes'),
('math_asciimathML','false','No'),
('enabled_asciisvg','true','Yes'),
('enabled_asciisvg','false','No'),
('include_asciimathml_script','true','Yes'),
('include_asciimathml_script','false','No'),
('youtube_for_students','true','Yes'),

Loading…
Cancel
Save