]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-12717 use apply_default_exception_settings before other admin defaults; merged...
authorskodak <skodak>
Sun, 23 Dec 2007 12:05:54 +0000 (12:05 +0000)
committerskodak <skodak>
Sun, 23 Dec 2007 12:05:54 +0000 (12:05 +0000)
admin/index.php

index 3acda892a8dc321338fc053fc0c96101c762275e..910e463ab18d4e04332431ade641dce1c5d1e1b3 100644 (file)
             // install core event handlers
             events_update_definition();
 
-            // Write default settings unconditionally (i.e. even if a setting is already set, overwrite it)
-            // (this should only have any effect during initial install).
-            admin_apply_default_settings(NULL, true);
-
             /// This is used to handle any settings that must exist in $CFG but which do not exist in
             /// admin_get_root()/$ADMIN as admin_setting objects (there are some exceptions).
             apply_default_exception_settings(array('auth' => 'email',
                                                    'theme' => 'standardwhite',
                                                    'filter_multilang_converted' => 1));
 
+            // Write default settings unconditionally (i.e. even if a setting is already set, overwrite it)
+            // (this should only have any effect during initial install).
+            admin_apply_default_settings(NULL, true);
+
             notify($strdatabasesuccess, "green");
             require_once $CFG->dirroot.'/mnet/lib.php';
         } else {