Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

commit 71 added missing :

  • Loading branch information...
commit 05c5eca33cf43ac56e033e89c09888df4493f5c8 1 parent bc61d8f
phpfreak authored
Showing with 6 additions and 10 deletions.
  1. +6 −10 init.php
16 init.php
View
@@ -99,17 +99,13 @@ function trace($f, $l = '') {
'persist' => DB_PERSIST
)); // connect
if (defined('DB_CHARSET') && trim(DB_CHARSET)) {
- DB::execute("SET NAMES ? COLLATE ?", DB_CHARSET, 'utf8_unicode_ci');
+ DB::attempt("SET NAMES ? COLLATE ?", DB_CHARSET, 'utf8_unicode_ci');
} // if
- DB::execute('ROLLBACK');
- DB::execute('UNLOCK TABLES');
- DB::execute('SET AUTOCOMMIT=1');
- DB::execute("SET SQL_MODE=''");
- try {
- DB::execute("SET STORAGE_ENGINE=INNODB"); // try to set to INNODB
- } catch(Exception $e) {
- // don't care if it fails
- }
+ DB::attempt('ROLLBACK');
+ DB::attempt('UNLOCK TABLES');
+ DB::attempt('SET AUTOCOMMIT=1');
+ DB::attempt("SET SQL_MODE=''");
+ DB::attempt("SET STORAGE_ENGINE=INNODB");
//
//Failed to import file '/home/sharec/public_html/pp088/tmp/Riot.zip' to the file repository (unique file id: a25a6e76db0b741ec4f30d6bbae79db37024c28a)
// DB::execute('SET SESSION max_allowed_packet=16777216'); // 16 MB
Please sign in to comment.
Something went wrong with that request. Please try again.