MDL-87338 core_table: avoid string concatenation.

This commit is contained in:
Luca Bösch
2026-02-05 17:21:13 +01:00
parent e99b368c60
commit 3988c4c620
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -1040,6 +1040,7 @@ $string['hidesection'] = 'Hide section {$a}';
$string['hidesettings'] = 'Hide settings';
$string['hideshowblocks'] = 'Hide or show blocks';
$string['hidepopoverwindow'] = 'Hide popover window';
$string['hidex'] = 'Hide {$a}';
$string['highlight'] = 'Highlight';
$string['highlighted'] = 'Highlighted';
$string['highlightoff'] = 'Unhighlight';
@@ -2067,6 +2068,7 @@ $string['showreports_help'] = 'Allow students to view their own activity reports
$string['showsettings'] = 'Show settings';
$string['showtheselogs'] = 'Show these logs';
$string['showthishelpinlanguage'] = 'Show this help in language: {$a}';
$string['showx'] = 'Show {$a}';
$string['schedule'] = 'Schedule';
$string['sidepanel'] = 'Side panel';
$string['signoutofotherservices'] = 'Log out of all web apps';
+2 -2
View File
@@ -1247,7 +1247,7 @@ class flexible_table {
if (!empty($this->prefs['collapse'][$column])) {
$linkattributes = [
'title' => get_string('show') . ' ' . strip_tags($this->headers[$index]),
'title' => get_string('showx', 'core', strip_tags($this->headers[$index])),
'aria-expanded' => 'false',
'aria-controls' => $ariacontrols,
'data-action' => 'show',
@@ -1261,7 +1261,7 @@ class flexible_table {
);
} else if ($this->headers[$index] !== null) {
$linkattributes = [
'title' => get_string('hide') . ' ' . strip_tags($this->headers[$index]),
'title' => get_string('hidex', 'core', strip_tags($this->headers[$index])),
'aria-expanded' => 'true',
'aria-controls' => $ariacontrols,
'data-action' => 'hide',