Quellcode durchsuchen

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

Yannick Warnier vor 9 Jahren
Ursprung
Commit
558e1da729
2 geänderte Dateien mit 5 neuen und 22 gelöschten Zeilen
  1. 2 22
      app/Migrations/Schema/V110/Version20150813200000.php
  2. 3 0
      main/install/data.sql

+ 2 - 22
app/Migrations/Schema/V110/Version20150813200000.php

@@ -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']
-            ]
-        );
     }
 }

+ 3 - 0
main/install/data.sql

@@ -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'),