MDL-13345 disabled module not present on backup form anymore; merged from MOODLE_19_S...
authorskodak <skodak>
Tue, 5 Feb 2008 22:55:50 +0000 (22:55 +0000)
committerskodak <skodak>
Tue, 5 Feb 2008 22:55:50 +0000 (22:55 +0000)
backup/backup_form.html

index 47357f2860f492ee55341938dc54bcc9d03b40dd..2437564384a81d8c74b988df33e7e6245ff18a41 100644 (file)
@@ -28,7 +28,7 @@
     //Checks for the required files/functions to backup every mod
     //And check if there is data about it
     $count = 0;
-    if ($allmods = get_records("modules") ) {
+    if ($allmods = get_records('modules', 'visible', 1) ) {
         foreach ($allmods as $mod) {
             $modname = $mod->name;
             $modfile = "$CFG->dirroot/mod/$modname/backuplib.php";
@@ -120,7 +120,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
 /// Acummulator for hidden options and proper XHTML output
     $hidden_options = '';
     //Now, check modules and info and show posibilities
-    if ($allmods = get_records("modules") ) {
+    if ($allmods = get_records('modules', 'visible', 1) ) {
         //Print option to select/deselect everything with 1 click.
         echo "<tr>";
         echo "<td align=\"right\">";