]> git.mjollnir.org Git - moodle.git/commitdiff
Only mysql and postgresql show the UTF-8 migration message.
authorstronk7 <stronk7>
Fri, 1 Sep 2006 18:41:30 +0000 (18:41 +0000)
committerstronk7 <stronk7>
Fri, 1 Sep 2006 18:41:30 +0000 (18:41 +0000)
admin/index.php

index 2148c194f08e70e31c0522897873f3292d9869c2..400e2da67c9ceeab6cce25ee0e08789ff11b7d5a 100644 (file)
         print_simple_box(get_string('sitemaintenancewarning', 'admin') , 'center', '60%');
     }
 
-/// Alert if we are currently in maintenance mode
-    if (empty($CFG->unicodedb)) {
+/// Alert to display the utf-8 migration button (if !unicode yet and DB is MySQL or PG)
+    if (empty($CFG->unicodedb) && in_array($CFG->dbtype, array('mysql', 'postgres7'))) {
         print_simple_box(get_string('unicodeupgradenotice', 'admin') , 'center', '60%');
     }