|
@@ 1025-1032 (lines=8) @@
|
| 1022 |
|
$modSettings['disableQueryCheck'] = true; |
| 1023 |
|
|
| 1024 |
|
// If doing UTF8, select it. PostgreSQL requires passing it as a string... |
| 1025 |
|
if (!empty($db_character_set) && $db_character_set == 'utf8' && !empty($databases[$db_type]['utf8_support'])) |
| 1026 |
|
$smcFunc['db_query']('', ' |
| 1027 |
|
SET NAMES {string:utf8}', |
| 1028 |
|
array( |
| 1029 |
|
'db_error_skip' => true, |
| 1030 |
|
'utf8' => 'utf8', |
| 1031 |
|
) |
| 1032 |
|
); |
| 1033 |
|
|
| 1034 |
|
// Windows likes to leave the trailing slash, which yields to C:\path\to\SMF\/attachments... |
| 1035 |
|
if (substr(__DIR__, -1) == '\\') |
|
@@ 1525-1532 (lines=8) @@
|
| 1522 |
|
if (!empty($incontext['account_existed'])) |
| 1523 |
|
$incontext['warning'] = $incontext['account_existed']; |
| 1524 |
|
|
| 1525 |
|
if (!empty($db_character_set) && !empty($databases[$db_type]['utf8_support'])) |
| 1526 |
|
$smcFunc['db_query']('', ' |
| 1527 |
|
SET NAMES {string:db_character_set}', |
| 1528 |
|
array( |
| 1529 |
|
'db_character_set' => $db_character_set, |
| 1530 |
|
'db_error_skip' => true, |
| 1531 |
|
) |
| 1532 |
|
); |
| 1533 |
|
|
| 1534 |
|
// As track stats is by default enabled let's add some activity. |
| 1535 |
|
$smcFunc['db_insert']('ignore', |