mirror of
https://github.com/friendica/friendica
synced 2025-04-24 09:10:17 +00:00
Merge pull request #3473 from Quix0r/rewrites/coding-convention-split2-6-2
Coding convention applied split 2-6-2 (of 2-14-2)
This commit is contained in:
commit
ea88e15a8c
19 changed files with 748 additions and 621 deletions
|
@ -30,7 +30,7 @@ function convert_to_innodb() {
|
|||
$sql = sprintf("ALTER TABLE `%s` engine=InnoDB;", dbesc($table['TABLE_NAME']));
|
||||
echo $sql."\n";
|
||||
|
||||
$result = @$db->q($sql);
|
||||
$result = $db->q($sql);
|
||||
if (!dbm::is_result($result)) {
|
||||
print_update_error($db, $sql);
|
||||
}
|
||||
|
@ -85,6 +85,7 @@ function update_fail($update_id, $error_message) {
|
|||
|
||||
|
||||
/*
|
||||
@TODO deprecated code?
|
||||
$email_tpl = get_intltext_template("update_fail_eml.tpl");
|
||||
$email_msg = replace_macros($email_tpl, array(
|
||||
'$sitename' => $a->config['sitename'],
|
||||
|
@ -1764,10 +1765,10 @@ function dbstructure_run(&$argv, &$argc) {
|
|||
}
|
||||
|
||||
if (is_null($db)) {
|
||||
@include(".htconfig.php");
|
||||
require_once("include/dba.php");
|
||||
@include ".htconfig.php";
|
||||
require_once "include/dba.php";
|
||||
$db = new dba($db_host, $db_user, $db_pass, $db_data);
|
||||
unset($db_host, $db_user, $db_pass, $db_data);
|
||||
unset($db_host, $db_user, $db_pass, $db_data);
|
||||
}
|
||||
|
||||
if ($argc == 2) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue