Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
92a6e5d5
Commit
92a6e5d5
authored
Mar 29, 2019
by
Robert Lyon
Committed by
Gerrit Code Review
Mar 29, 2019
Browse files
Merge "Bug 1820927: language string clash in view.php lang file"
parents
03ace2c0
11534107
Changes
5
Show whitespace changes
Inline
Side-by-side
htdocs/lang/en.utf8/view.php
View file @
92a6e5d5
...
@@ -471,9 +471,9 @@ $string['mostcomments1'] = 'Most comments';
...
@@ -471,9 +471,9 @@ $string['mostcomments1'] = 'Most comments';
// View types
// View types
$string
[
'dashboard'
]
=
'Dashboard'
;
$string
[
'dashboard'
]
=
'Dashboard'
;
$string
[
'
p
rofile'
]
=
'Profile'
;
$string
[
'
P
rofile'
]
=
'Profile'
;
$string
[
'
p
ortfolio'
]
=
'Portfolio'
;
$string
[
'
P
ortfolio'
]
=
'Portfolio'
;
$string
[
'
g
rouphomepage'
]
=
'Group homepage'
;
$string
[
'
G
rouphomepage'
]
=
'Group homepage'
;
$string
[
'grouphomepagedescription'
]
=
'The group homepage contains the content that appears on the "About" tab for this group'
;
$string
[
'grouphomepagedescription'
]
=
'The group homepage contains the content that appears on the "About" tab for this group'
;
$string
[
'pageaccessrules'
]
=
'Page access rules'
;
$string
[
'pageaccessrules'
]
=
'Page access rules'
;
...
...
htdocs/lib/group.php
View file @
92a6e5d5
...
@@ -2570,7 +2570,7 @@ function install_system_grouphomepage_view() {
...
@@ -2570,7 +2570,7 @@ function install_system_grouphomepage_view() {
'template'
=>
View
::
SITE_TEMPLATE
,
'template'
=>
View
::
SITE_TEMPLATE
,
'numrows'
=>
1
,
'numrows'
=>
1
,
'columnsperrow'
=>
array
((
object
)
array
(
'row'
=>
1
,
'columns'
=>
1
)),
'columnsperrow'
=>
array
((
object
)
array
(
'row'
=>
1
,
'columns'
=>
1
)),
'title'
=>
get_string
(
'
g
rouphomepage'
,
'view'
),
'title'
=>
get_string
(
'
G
rouphomepage'
,
'view'
),
));
));
$view
->
set_access
(
array
(
array
(
$view
->
set_access
(
array
(
array
(
'type'
=>
'loggedin'
'type'
=>
'loggedin'
...
...
htdocs/lib/statistics.php
View file @
92a6e5d5
...
@@ -2680,7 +2680,7 @@ function view_type_graph($type = null) {
...
@@ -2680,7 +2680,7 @@ function view_type_graph($type = null) {
if
(
count
(
$viewtypes
)
>
1
)
{
if
(
count
(
$viewtypes
)
>
1
)
{
$dataarray
=
array
();
$dataarray
=
array
();
foreach
(
$viewtypes
as
&
$t
)
{
foreach
(
$viewtypes
as
&
$t
)
{
$dataarray
[
get_string
(
$t
->
type
,
'view'
)]
=
$t
->
views
;
$dataarray
[
get_string
(
ucfirst
(
$t
->
type
)
,
'view'
)]
=
$t
->
views
;
}
}
arsort
(
$dataarray
);
arsort
(
$dataarray
);
...
...
htdocs/lib/view.php
View file @
92a6e5d5
...
@@ -6437,7 +6437,7 @@ class View {
...
@@ -6437,7 +6437,7 @@ class View {
return
get_string
(
'dashboardviewtitle'
,
'view'
);
return
get_string
(
'dashboardviewtitle'
,
'view'
);
}
}
if
(
$this
->
type
==
'grouphomepage'
)
{
if
(
$this
->
type
==
'grouphomepage'
)
{
return
get_string
(
'
g
rouphomepage'
,
'view'
);
return
get_string
(
'
G
rouphomepage'
,
'view'
);
}
}
return
$this
->
title
;
return
$this
->
title
;
}
}
...
...
htdocs/view/blocks.php
View file @
92a6e5d5
...
@@ -86,7 +86,7 @@ else if ($view->get('type') == 'dashboard') {
...
@@ -86,7 +86,7 @@ else if ($view->get('type') == 'dashboard') {
define
(
'TITLE'
,
$title
);
define
(
'TITLE'
,
$title
);
}
}
else
if
(
$view
->
get
(
'type'
)
==
'grouphomepage'
)
{
else
if
(
$view
->
get
(
'type'
)
==
'grouphomepage'
)
{
$title
=
get_string
(
'
g
rouphomepage'
,
'view'
);
$title
=
get_string
(
'
G
rouphomepage'
,
'view'
);
if
(
$view
->
get
(
'template'
)
!=
View
::
SITE_TEMPLATE
)
{
if
(
$view
->
get
(
'template'
)
!=
View
::
SITE_TEMPLATE
)
{
$groupurl
=
group_homepage_url
(
get_group_by_id
(
$view
->
get
(
'group'
),
true
),
false
);
$groupurl
=
group_homepage_url
(
get_group_by_id
(
$view
->
get
(
'group'
),
true
),
false
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment