|
@@ 1095-1102 (lines=8) @@
|
| 1092 |
|
$modSettings['disableQueryCheck'] = true; |
| 1093 |
|
|
| 1094 |
|
// If doing UTF8, select it. PostgreSQL requires passing it as a string... |
| 1095 |
|
if (!empty($db_character_set) && $db_character_set == 'utf8' && !empty($databases[$db_type]['utf8_support'])) |
| 1096 |
|
$smcFunc['db_query']('', ' |
| 1097 |
|
SET NAMES {string:utf8}', |
| 1098 |
|
array( |
| 1099 |
|
'db_error_skip' => true, |
| 1100 |
|
'utf8' => 'utf8', |
| 1101 |
|
) |
| 1102 |
|
); |
| 1103 |
|
|
| 1104 |
|
// Windows likes to leave the trailing slash, which yields to C:\path\to\SMF\/attachments... |
| 1105 |
|
if (substr(__DIR__, -1) == '\\') |
|
@@ 1638-1645 (lines=8) @@
|
| 1635 |
|
if (!empty($incontext['account_existed'])) |
| 1636 |
|
$incontext['warning'] = $incontext['account_existed']; |
| 1637 |
|
|
| 1638 |
|
if (!empty($db_character_set) && !empty($databases[$db_type]['utf8_support'])) |
| 1639 |
|
$smcFunc['db_query']('', ' |
| 1640 |
|
SET NAMES {string:db_character_set}', |
| 1641 |
|
array( |
| 1642 |
|
'db_character_set' => $db_character_set, |
| 1643 |
|
'db_error_skip' => true, |
| 1644 |
|
) |
| 1645 |
|
); |
| 1646 |
|
|
| 1647 |
|
// As track stats is by default enabled let's add some activity. |
| 1648 |
|
$smcFunc['db_insert']('ignore', |