Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…ing lang string in my template
  • Loading branch information...
commit 49ae1fdceaa49964aeec0a31f898c0e30a3e6eff 1 parent d4e71a4
@stronk7 stronk7 authored
Showing with 2 additions and 5 deletions.
  1. +1 −1  lib/blocklib.php
  2. +1 −4 user/lib.php
View
2  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'));
}
/**
View
5 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'));
}
Please sign in to comment.
Something went wrong with that request. Please try again.