From 49ae1fdceaa49964aeec0a31f898c0e30a3e6eff Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Mon, 5 Dec 2011 01:14:19 +0100 Subject: [PATCH] MDL-30340 blocks - incorrect option in user profile template and missing lang string in my template --- lib/blocklib.php | 2 +- user/lib.php | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/blocklib.php b/lib/blocklib.php index 814dc36676c..7662ccea360 100644 --- a/lib/blocklib.php +++ b/lib/blocklib.php @@ -1717,7 +1717,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')); } /** diff --git a/user/lib.php b/user/lib.php index 7c2267fe327..66f84047a47 100644 --- a/user/lib.php +++ b/user/lib.php @@ -392,8 +392,5 @@ function user_get_user_details($user, $course = null, array $userfields = array( * @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')); }