Permalink
Browse files

MDL-30340 blocks - incorrect option in user profile template and miss…

…ing lang string in my template
  • Loading branch information...
1 parent 2805eb3 commit 01343e6835c9668bb94c7e7e495976b792893c1a @stronk7 stronk7 committed Dec 5, 2011
Showing with 2 additions and 5 deletions.
  1. +1 −1 lib/blocklib.php
  2. +1 −4 user/lib.php
View
@@ -1725,7 +1725,7 @@ function default_page_type_list($pagetype, $parentcontext = null, $currentcontex
* @return array
*/
function my_page_type_list($pagetype, $parentcontext = null, $currentcontext = null) {
- return array('my-index' => 'my-index');
+ return array('my-index' => get_string('page-my-index', 'pagetype'));
}
/**
View
@@ -347,8 +347,5 @@ function user_get_user_details($user, $course = null) {
* @param stdClass $currentcontext Current context of block
*/
function user_page_type_list($pagetype, $parentcontext, $currentcontext) {
- return array(
- 'user-profile'=>get_string('page-user-profile', 'pagetype'),
- 'my-index'=>get_string('page-my-index', 'pagetype')
- );
+ return array('user-profile'=>get_string('page-user-profile', 'pagetype'));
}

0 comments on commit 01343e6

Please sign in to comment.