Merge branch 'MDL-51632_echo_url' of git://github.com/moodlerooms/moodle
authorDavid Monllao <davidm@moodle.com>
Wed, 7 Oct 2015 07:24:36 +0000 (15:24 +0800)
committerDavid Monllao <davidm@moodle.com>
Wed, 7 Oct 2015 07:24:36 +0000 (15:24 +0800)
admin/tool/generator/cli/maketestcourse.php

index a8bc76e..cbd43e1 100644 (file)
@@ -113,3 +113,7 @@ $backend = new tool_generator_course_backend(
     FORMAT_HTML
 );
 $id = $backend->make();
+
+if (empty($options['quiet'])) {
+    echo PHP_EOL.'Generated course: '.course_get_url($id).PHP_EOL;
+}