MDL-23934 customlang: MySQL does not like SELECT field, *

This commit is contained in:
David Mudrak 2010-08-25 11:52:49 +00:00
parent 915ee3f9df
commit 5e90252679

View File

@ -111,7 +111,11 @@ class report_customlang_utils {
$stringman = get_string_manager();
$components = $DB->get_records('customlang_components');
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);
if ($lang == 'en') {
$master =& $english;