Completed
Push — develop ( acc675...3313cf )
by Dmytro
12:18
created
install/cli-install.php 1 patch
Upper-Lower-Casing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
 
317 317
 
318 318
 // make sure we can use the database
319
-if ($installMode > 0 && !mysqli_query($conn, "USE {$dbase}")) {
319
+if ($installMode > 0 && !mysqli_query($conn, "use {$dbase}")) {
320 320
     $errors++;
321 321
     echo $_lang['database_use_failed'] . PHP_EOL;
322 322
 }
@@ -1117,7 +1117,7 @@  discard block
 block discarded – undo
1117 1117
 
1118 1118
                 if (mysqli_num_rows($rs)) {
1119 1119
                     if (!mysqli_query($sqlParser->conn,
1120
-                        "UPDATE $dbase.`" . $table_prefix . "site_templates` SET content='$template', description='$desc', category=$category_id, locked='$locked'  WHERE templatename='$name' LIMIT 1;")) {
1120
+                        "update $dbase.`" . $table_prefix . "site_templates` SET content='$template', description='$desc', category=$category_id, locked='$locked'  WHERE templatename='$name' LIMIT 1;")) {
1121 1121
                         $errors += 1;
1122 1122
                         echo mysqli_error($sqlParser->conn) . PHP_EOL;
1123 1123
 
@@ -1181,7 +1181,7 @@  discard block
 block discarded – undo
1181 1181
                 $insert = true;
1182 1182
                 while ($row = mysqli_fetch_assoc($rs)) {
1183 1183
                     if (!mysqli_query($sqlParser->conn,
1184
-                        "UPDATE $dbase.`" . $table_prefix . "site_tmplvars` SET type='$input_type', caption='$caption', description='$desc', category=$category, locked=$locked, elements='$input_options', display='$output_widget', display_params='$output_widget_params', default_text='$input_default' WHERE id={$row['id']};")) {
1184
+                        "update $dbase.`" . $table_prefix . "site_tmplvars` SET type='$input_type', caption='$caption', description='$desc', category=$category, locked=$locked, elements='$input_options', display='$output_widget', display_params='$output_widget_params', default_text='$input_default' WHERE id={$row['id']};")) {
1185 1185
                         echo mysqli_error($sqlParser->conn) . PHP_EOL;
1186 1186
 
1187 1187
                         return;
@@ -1266,7 +1266,7 @@  discard block
 block discarded – undo
1266 1266
                 $update = $count_original_name > 0 && $overwrite == 'true';
1267 1267
                 if ($update) {
1268 1268
                     if (!mysqli_query($sqlParser->conn,
1269
-                        "UPDATE $dbase.`" . $table_prefix . "site_htmlsnippets` SET snippet='$chunk', description='$desc', category=$category_id WHERE name='$name';")) {
1269
+                        "update $dbase.`" . $table_prefix . "site_htmlsnippets` SET snippet='$chunk', description='$desc', category=$category_id WHERE name='$name';")) {
1270 1270
                         $errors += 1;
1271 1271
                         echo mysqli_error($sqlParser->conn) . PHP_EOL;
1272 1272
 
@@ -1322,7 +1322,7 @@  discard block
 block discarded – undo
1322 1322
                     $row = mysqli_fetch_assoc($rs);
1323 1323
                     $props = mysqli_real_escape_string($conn, propUpdate($properties, $row['properties']));
1324 1324
                     if (!mysqli_query($sqlParser->conn,
1325
-                        "UPDATE $dbase.`" . $table_prefix . "site_modules` SET modulecode='$module', description='$desc', properties='$props', enable_sharedparams='$shared' WHERE name='$name';")) {
1325
+                        "update $dbase.`" . $table_prefix . "site_modules` SET modulecode='$module', description='$desc', properties='$props', enable_sharedparams='$shared' WHERE name='$name';")) {
1326 1326
                         echo mysqli_error($sqlParser->conn) . PHP_EOL;
1327 1327
 
1328 1328
                         return;
@@ -1373,7 +1373,7 @@  discard block
 block discarded – undo
1373 1373
 
1374 1374
                 // disable legacy versions based on legacy_names provided
1375 1375
                 if (!empty($leg_names)) {
1376
-                    $update_query = "UPDATE $dbase.`" . $table_prefix . "site_plugins` SET disabled='1' WHERE name IN ($leg_names);";
1376
+                    $update_query = "update $dbase.`" . $table_prefix . "site_plugins` SET disabled='1' WHERE name IN ($leg_names);";
1377 1377
                     $rs = mysqli_query($sqlParser->conn, $update_query);
1378 1378
                 }
1379 1379
 
@@ -1391,7 +1391,7 @@  discard block
 block discarded – undo
1391 1391
                         $props = mysqli_real_escape_string($conn, propUpdate($properties, $row['properties']));
1392 1392
                         if ($row['description'] == $desc) {
1393 1393
                             if (!mysqli_query($sqlParser->conn,
1394
-                                "UPDATE $dbase.`" . $table_prefix . "site_plugins` SET plugincode='$plugin', description='$desc', properties='$props' WHERE id={$row['id']};")) {
1394
+                                "update $dbase.`" . $table_prefix . "site_plugins` SET plugincode='$plugin', description='$desc', properties='$props' WHERE id={$row['id']};")) {
1395 1395
                                 echo mysqli_error($sqlParser->conn) . PHP_EOL;
1396 1396
 
1397 1397
                                 return;
@@ -1399,7 +1399,7 @@  discard block
 block discarded – undo
1399 1399
                             $insert = false;
1400 1400
                         } else {
1401 1401
                             if (!mysqli_query($sqlParser->conn,
1402
-                                "UPDATE $dbase.`" . $table_prefix . "site_plugins` SET disabled='1' WHERE id={$row['id']};")) {
1402
+                                "update $dbase.`" . $table_prefix . "site_plugins` SET disabled='1' WHERE id={$row['id']};")) {
1403 1403
                                 echo mysqli_error($sqlParser->conn) . PHP_EOL;
1404 1404
 
1405 1405
                                 return;
@@ -1478,7 +1478,7 @@  discard block
 block discarded – undo
1478 1478
                     $row = mysqli_fetch_assoc($rs);
1479 1479
                     $props = mysqli_real_escape_string($conn, propUpdate($properties, $row['properties']));
1480 1480
                     if (!mysqli_query($sqlParser->conn,
1481
-                        "UPDATE $dbase.`" . $table_prefix . "site_snippets` SET snippet='$snippet', description='$desc', properties='$props' WHERE name='$name';")) {
1481
+                        "update $dbase.`" . $table_prefix . "site_snippets` SET snippet='$snippet', description='$desc', properties='$props' WHERE name='$name';")) {
1482 1482
                         echo mysqli_error($sqlParser->conn) . PHP_EOL;
1483 1483
 
1484 1484
                         return;
Please login to merge, or discard this patch.