MDL-38682 removed auto page type, created issue MDL-39045 to address this
authorMarina Glancy <marina@moodle.com>
Tue, 9 Apr 2013 06:16:21 +0000 (16:16 +1000)
committerMarina Glancy <marina@moodle.com>
Tue, 9 Apr 2013 06:16:21 +0000 (16:16 +1000)
course/lib.php

index 7403ab6..a94e38e 100644 (file)
@@ -2845,10 +2845,6 @@ function course_page_type_list($pagetype, $parentcontext, $currentcontext) {
             'course-view-*' => get_string('page-course-view-x', 'pagetype')
         );
     }
-    // If the string definition for current page is missing, add generic name so the form does not get broken
-    if (!get_string_manager()->string_exists('page-'. $pagetype, 'pagetype')) {
-        $pagetypes[$pagetype] = $pagetype;
-    }
     return $pagetypes;
 }