Skip to content

Commit

Permalink
MDL-15666 Generator fixed. Ready for forum portfolio caller testing
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Sep 6, 2008
1 parent 837e6a4 commit d799878
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions admin/generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,7 @@ public function generate_modules($courses) {
$DB->get_in_or_equal($this->modules_to_ignore, SQL_PARAMS_NAMED, 'param2000', false);

$wheresql = "name $modules_list_sql AND name $modules_ignored_sql";
$modules = $DB->get_records_select('modules', $wheresql,
array_merge($modules_params, $ignore_params));
$modules = $DB->get_records_select('modules', $wheresql, array_merge($modules_params, $ignore_params));

foreach ($modules as $key => $module) {
$module->count = 0;
Expand Down Expand Up @@ -1231,6 +1230,10 @@ class fake_form {
function get_new_filename($string) {
return false;
}

function save_stored_file() {
return true;
}
}

class generator_form extends moodleform {
Expand Down

0 comments on commit d799878

Please sign in to comment.