]> git.mxchange.org Git - friendica.git/commitdiff
Why I had coded it that way? Now it is better
authorMichael <heluecht@pirati.ca>
Thu, 14 Dec 2017 22:22:44 +0000 (22:22 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 14 Dec 2017 22:22:44 +0000 (22:22 +0000)
scripts/dbstructure.php
src/Database/DBStructure.php

index d293fc8714b5749e86ff7ab0d21283af52bfed06..3787af2255dd0ae63c1eea28e28f8b4ba35666a5 100755 (executable)
@@ -46,7 +46,7 @@ if ($_SERVER["argc"] == 2) {
                        Config::set('system','build',DB_UPDATE_VERSION);
                        return;
                case "dumpsql":
-                       DBStructure::printStructure(DBStructure::definition());
+                       DBStructure::printStructure();
                        return;
                case "toinnodb":
                        DBStructure::convertToInnoDB();
index 68d5e42feded76c1e9c69d5e2ed320083cd553c6..c118d862f726ace5eb155fe6980324511fad4f15 100644 (file)
@@ -153,7 +153,9 @@ class DBStructure {
                return array("fields" => $fielddata, "indexes" => $indexdata, "table_status" => $table_status);
        }
 
-       public static function printStructure($database) {
+       public static function printStructure() {
+               $database = self::definition();
+
                echo "-- ------------------------------------------\n";
                echo "-- ".FRIENDICA_PLATFORM." ".FRIENDICA_VERSION." (".FRIENDICA_CODENAME,")\n";
                echo "-- DB_UPDATE_VERSION ".DB_UPDATE_VERSION."\n";