| @@ 1835-1836 (lines=2) @@ | ||
| 1832 | ||
| 1833 | // Save the current database version. |
|
| 1834 | $server_version = $smcFunc['db_server_info'](); |
|
| 1835 | if (($db_type == 'mysql' || $db_type == 'mysqli') && in_array(substr($server_version, 0, 6), array('5.0.50', '5.0.51'))) |
|
| 1836 | updateSettings(array('db_mysql_group_by_fix' => '1')); |
|
| 1837 | ||
| 1838 | if ($command_line) |
|
| 1839 | { |
|
| @@ 1666-1667 (lines=2) @@ | ||
| 1663 | ||
| 1664 | // Check if we need some stupid MySQL fix. |
|
| 1665 | $server_version = $smcFunc['db_server_info'](); |
|
| 1666 | if (($db_type == 'mysql' || $db_type == 'mysqli') && in_array(substr($server_version, 0, 6), array('5.0.50', '5.0.51'))) |
|
| 1667 | updateSettings(array('db_mysql_group_by_fix' => '1')); |
|
| 1668 | ||
| 1669 | // Some final context for the template. |
|
| 1670 | $incontext['dir_still_writable'] = is_writable(dirname(__FILE__)) && substr(__FILE__, 1, 2) != ':\\'; |
|