Skip to content

Commit 3a7d2cc

Browse files
author
Daniel Ureña
committed
MDLSITE-7990: Fix dropdown menu, variable interpolation and amos-view styles
1 parent 32f66c6 commit 3a7d2cc

File tree

5 files changed

+37
-10
lines changed

5 files changed

+37
-10
lines changed

classes/contributor_selector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ public function find_users($search) {
6464
$countfields = "SELECT COUNT(*)";
6565

6666
$sql = " FROM {user} u
67-
WHERE ${searchsql}";
67+
WHERE $searchsql";
6868

69-
$order = " ORDER BY ${sortsql}";
69+
$order = " ORDER BY $sortsql";
7070

7171
if (!$this->is_validating()) {
7272
$foundcount = $DB->count_records_sql($countfields.$sql, array_merge($searchparams));

classes/maintainer_selector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ public function find_users($search) {
6767
$countfields = "SELECT COUNT(*)";
6868

6969
$sql = " FROM {user} u
70-
WHERE u.id ${permsql} AND ${searchsql}";
70+
WHERE u.id $permsql AND $searchsql";
7171

72-
$order = " ORDER BY ${sortsql}";
72+
$order = " ORDER BY $sortsql";
7373

7474
if (!$this->is_validating()) {
7575
$foundcount = $DB->count_records_sql($countfields.$sql, array_merge($permparams, $searchparams));

classes/stats_manager.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ public function write_buffer() {
125125

126126
$sql = "SELECT id, branch, lang, component, numofstrings
127127
FROM {amos_stats}
128-
WHERE branch ${sqlbranches}
129-
AND lang ${sqllangs}
130-
AND component ${sqlcomponents}";
128+
WHERE branch $sqlbranches
129+
AND lang $sqllangs
130+
AND component $sqlcomponents";
131131

132132
$current = [];
133133
$rs = $DB->get_recordset_sql($sql, array_merge($parambranches, $paramlangs, $paramcomponents));
@@ -324,7 +324,7 @@ public function get_language_pack_ratio_stats(?int $vercode = null): array {
324324

325325
$sql = "SELECT lang, SUM(numofstrings) AS totalnumofstrings
326326
FROM {amos_stats}
327-
WHERE component ${standardsql}
327+
WHERE component $standardsql
328328
AND branch = :vercode
329329
GROUP BY lang
330330
ORDER BY totalnumofstrings DESC, MAX(timemodified), lang";

renderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ protected function collapsible_stage_tool($title, $content, $helpicon = '', $exp
282282
}
283283

284284
$attr['aria-controls'] = html_writer::random_id('collapse_');
285-
$attr['data-toggle'] = 'collapse';
285+
$attr['data-bs-toggle'] = 'collapse';
286286
$attr['data-target'] = '#'.$attr['aria-controls'];
287287

288288
$output = html_writer::start_div('stagetool '.$extraclasses);

0 commit comments

Comments
 (0)