From af105b8abb6d7bd9234010025f664d132a831f78 Mon Sep 17 00:00:00 2001 From: skodak Date: Tue, 5 Feb 2008 22:55:50 +0000 Subject: [PATCH] MDL-13345 disabled module not present on backup form anymore; merged from MOODLE_19_STABLE --- backup/backup_form.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup/backup_form.html b/backup/backup_form.html index 47357f2860..2437564384 100644 --- a/backup/backup_form.html +++ b/backup/backup_form.html @@ -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 ""; echo ""; -- 2.39.5