| @@ 1748-1749 (lines=2) @@ | ||
| 1745 | ||
| 1746 | // Check if we need some stupid MySQL fix. |
|
| 1747 | $server_version = $smcFunc['db_server_info'](); |
|
| 1748 | if (($db_type == 'mysql' || $db_type == 'mysqli') && in_array(substr($server_version, 0, 6), array('5.0.50', '5.0.51'))) |
|
| 1749 | updateSettings(array('db_mysql_group_by_fix' => '1')); |
|
| 1750 | ||
| 1751 | // Some final context for the template. |
|
| 1752 | $incontext['dir_still_writable'] = is_writable(dirname(__FILE__)) && substr(__FILE__, 1, 2) != ':\\'; |
|
| @@ 1580-1581 (lines=2) @@ | ||
| 1577 | ||
| 1578 | // Save the current database version. |
|
| 1579 | $server_version = $smcFunc['db_server_info'](); |
|
| 1580 | if ($db_type == 'mysql' && in_array(substr($server_version, 0, 6), array('5.0.50', '5.0.51'))) |
|
| 1581 | updateSettings(array('db_mysql_group_by_fix' => '1')); |
|
| 1582 | ||
| 1583 | if ($command_line) |
|
| 1584 | { |
|