mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-23934 customlang: MySQL does not like SELECT field, *
This commit is contained in:
parent
915ee3f9df
commit
5e90252679
1 changed files with 5 additions and 1 deletions
|
@ -111,7 +111,11 @@ class report_customlang_utils {
|
||||||
$stringman = get_string_manager();
|
$stringman = get_string_manager();
|
||||||
$components = $DB->get_records('customlang_components');
|
$components = $DB->get_records('customlang_components');
|
||||||
foreach ($components as $component) {
|
foreach ($components as $component) {
|
||||||
$current = $DB->get_records('customlang', array('lang'=>$lang, 'componentid'=>$component->id), 'stringid', 'stringid, *');
|
$sql = "SELECT stringid, s.*
|
||||||
|
FROM {customlang} s
|
||||||
|
WHERE lang = ? AND componentid = ?
|
||||||
|
ORDER BY stringid";
|
||||||
|
$current = $DB->get_records_sql($sql, array($lang, $component->id));
|
||||||
$english = $stringman->load_component_strings($component->name, 'en', true, true);
|
$english = $stringman->load_component_strings($component->name, 'en', true, true);
|
||||||
if ($lang == 'en') {
|
if ($lang == 'en') {
|
||||||
$master =& $english;
|
$master =& $english;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue