Commit a99b9b21 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1820927: language string clash in view.php lang file



There are two $string['portfolio'] strings one needs to be uppercase

behatnotneeded

Change-Id: Ia5e0390e719099408105c34810dae2fed35ad9b5
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
(cherry picked from commit 11534107)
parent a9966b98
......@@ -449,9 +449,9 @@ $string['mostcomments1'] = 'Most comments';
// View types
$string['dashboard'] = 'Dashboard';
$string['profile'] = 'Profile';
$string['portfolio'] = 'Portfolio';
$string['grouphomepage'] = 'Group homepage';
$string['Profile'] = 'Profile';
$string['Portfolio'] = 'Portfolio';
$string['Grouphomepage'] = 'Group homepage';
$string['grouphomepagedescription'] = 'The group homepage contains the content that appears on the "About" tab for this group';
$string['pageaccessrules'] = 'Page access rules';
......
......@@ -2546,7 +2546,7 @@ function install_system_grouphomepage_view() {
'template' => View::SITE_TEMPLATE,
'numrows' => 1,
'columnsperrow' => array((object)array('row' => 1, 'columns' => 1)),
'title' => get_string('grouphomepage', 'view'),
'title' => get_string('Grouphomepage', 'view'),
));
$view->set_access(array(array(
'type' => 'loggedin'
......
......@@ -2359,7 +2359,7 @@ function view_type_graph($type = null) {
if (count($viewtypes) > 1) {
$dataarray = array();
foreach ($viewtypes as &$t) {
$dataarray[get_string($t->type, 'view')] = $t->views;
$dataarray[get_string(ucfirst($t->type), 'view')] = $t->views;
}
arsort($dataarray);
......
......@@ -6105,7 +6105,7 @@ class View {
return get_string('dashboardviewtitle', 'view');
}
if ($this->type == 'grouphomepage') {
return get_string('grouphomepage', 'view');
return get_string('Grouphomepage', 'view');
}
return $this->title;
}
......
......@@ -87,7 +87,7 @@ else if ($view->get('type') == 'dashboard') {
define('TITLE', $title );
}
else if ($view->get('type') == 'grouphomepage') {
$title = get_string('grouphomepage', 'view');
$title = get_string('Grouphomepage', 'view');
if ($view->get('template') != View::SITE_TEMPLATE) {
$groupurl = group_homepage_url(get_group_by_id($view->get('group'), true), false);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment