Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions conf/defaults.config
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,10 @@ $courseFiles{logs}{activity_log} = '';
# to the new course being created.
$siteDefaults{default_templates_course} ="modelCourse";

# Provide a list of model courses which are not real courses, but from which
# the templates for a new course can be copied.
$modelCoursesForCopy = [ "modelCourse" ];

################################################################################
# Authentication system
################################################################################
Expand Down
7 changes: 7 additions & 0 deletions conf/localOverrides.conf.dist
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,13 @@ $mail{feedbackRecipients} = [
#$webworkFiles{screenSnippets}{setHeader} = "$courseDirs{templates}/ASimpleCombinedHeaderFile.pg";
#$webworkFiles{screenSnippets}{setHeader} = "$courseDirs{templates}/ASimpleScreenHeaderFile.pg";

################################################################################
# Settings for the admin course
################################################################################

# Provide a list of model courses which are not real courses, but from which
# the templates for a new course can be copied.
#$modelCoursesForCopy = [ "modelCourse", "anotherModelCourse", "aThirdOne" ];

################################################################################
# OpenProblemLibrary
Expand Down
2 changes: 1 addition & 1 deletion lib/WeBWorK/ContentGenerator/CourseAdmin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -484,8 +484,8 @@ sub add_course_form {
#});

my @existingCourses = listCourses($ce);
push @existingCourses, 'modelCourse';
@existingCourses = sort { lc($a) cmp lc ($b) } @existingCourses; #make sort case insensitive
unshift( @existingCourses, @{$ce->{modelCoursesForCopy}});

print CGI::h2($r->maketext("Add Course"));

Expand Down