Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dd85ed
)
MDL-38682 removed auto page type, created issue MDL-39045 to address this
author
Marina Glancy
<marina@moodle.com>
Tue, 9 Apr 2013 06:16:21 +0000
(16:16 +1000)
committer
Marina Glancy
<marina@moodle.com>
Tue, 9 Apr 2013 06:16:21 +0000
(16:16 +1000)
course/lib.php
patch
|
blob
|
blame
|
history
diff --git
a/course/lib.php
b/course/lib.php
index
7403ab6
..
a94e38e
100644
(file)
--- a/
course/lib.php
+++ b/
course/lib.php
@@
-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;
}