]> git.mxchange.org Git - friendica.git/blobdiff - update.php
Added logging of unsupported meta-tag records
[friendica.git] / update.php
index 2c5e2f5c1c99fcc1448a375fc0c6dcadf1ccba30..9126488c49c7ef71ec6034d45c70f1a37f49783b 100644 (file)
@@ -78,11 +78,11 @@ function update_1298()
                                        $a->strings = [];
 
                                        // First we get the the localizations
-                                       if (file_exists("view/lang/$lang/strings.php")) {
-                                               include "view/lang/$lang/strings.php";
+                                       if (file_exists('view/lang/$lang/strings.php')) {
+                                               include 'view/lang/$lang/strings.php';
                                        }
-                                       if (file_exists("addon/morechoice/lang/$lang/strings.php")) {
-                                               include "addon/morechoice/lang/$lang/strings.php";
+                                       if (file_exists('addon/morechoice/lang/$lang/strings.php')) {
+                                               include 'addon/morechoice/lang/$lang/strings.php';
                                        }
 
                                        $localizedStrings = $a->strings;
@@ -111,7 +111,7 @@ function update_1298()
                        }
                }
 
-               Logger::notice($translateKey . " fix completed", ['action' => 'update', 'translateKey' => $translateKey, 'Success' => $success, 'Fail' => $fail ]);
+               Logger::notice($translateKey . ' fix completed', ['action' => 'update', 'translateKey' => $translateKey, 'Success' => $success, 'Fail' => $fail ]);
        }
        return Update::SUCCESS;
 }
@@ -148,8 +148,8 @@ function update_1315()
 
 function update_1318()
 {
-       DBA::update('profile', ['marital' => "In a relation"], ['marital' => "Unavailable"]);
-       DBA::update('profile', ['marital' => "Single"], ['marital' => "Available"]);
+       DBA::update('profile', ['marital' => 'In a relation'], ['marital' => 'Unavailable']);
+       DBA::update('profile', ['marital' => 'Single'], ['marital' => 'Available']);
 
        Worker::add(PRIORITY_LOW, 'ProfileUpdate');
        return Update::SUCCESS;
@@ -981,7 +981,7 @@ function update_1429()
                return Update::FAILED;
        }
 
-       DI::config()->set("system", "post_update_version", 1423);
+       DI::config()->set('system', 'post_update_version', 1423);
 
        return Update::SUCCESS;
 }