Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-tool_lifecycle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-tool_lifecycle
Commits
5c0e92f6
Commit
5c0e92f6
authored
5 years ago
by
Tobias Reischmann
Browse files
Options
Downloads
Patches
Plain Diff
Support multilang course names throughout the whole plugin.
parent
2425fc83
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
classes/local/table/course_backups_table.php
+2
-2
2 additions, 2 deletions
classes/local/table/course_backups_table.php
classes/local/table/interaction_table.php
+1
-1
1 addition, 1 deletion
classes/local/table/interaction_table.php
with
3 additions
and
3 deletions
classes/local/table/course_backups_table.php
+
2
−
2
View file @
5c0e92f6
...
@@ -101,9 +101,9 @@ class course_backups_table extends \table_sql {
...
@@ -101,9 +101,9 @@ class course_backups_table extends \table_sql {
*/
*/
public
function
col_coursefullname
(
$row
)
{
public
function
col_coursefullname
(
$row
)
{
try
{
try
{
return
\html_writer
::
link
(
course_get_url
(
$row
->
courseid
),
$row
->
coursefullname
);
return
\html_writer
::
link
(
course_get_url
(
$row
->
courseid
),
format_string
(
$row
->
coursefullname
)
)
;
}
catch
(
\dml_missing_record_exception
$e
)
{
}
catch
(
\dml_missing_record_exception
$e
)
{
return
$row
->
coursefullname
;
return
format_string
(
$row
->
coursefullname
)
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
classes/local/table/interaction_table.php
+
1
−
1
View file @
5c0e92f6
...
@@ -62,7 +62,7 @@ abstract class interaction_table extends \table_sql {
...
@@ -62,7 +62,7 @@ abstract class interaction_table extends \table_sql {
* @return string course link
* @return string course link
*/
*/
public
function
col_coursefullname
(
$row
)
{
public
function
col_coursefullname
(
$row
)
{
$courselink
=
\html_writer
::
link
(
course_get_url
(
$row
->
courseid
),
$row
->
coursefullname
);
$courselink
=
\html_writer
::
link
(
course_get_url
(
$row
->
courseid
),
format_string
(
$row
->
coursefullname
)
)
;
return
$courselink
.
'<br><span class="secondary-info">'
.
$row
->
courseshortname
.
'</span>'
;
return
$courselink
.
'<br><span class="secondary-info">'
.
$row
->
courseshortname
.
'</span>'
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment