From: Michael Date: Thu, 14 Dec 2017 22:22:44 +0000 (+0000) Subject: Why I had coded it that way? Now it is better X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=559f8b446ba72df24435d6abb4b41773cb396e37;p=friendica.git Why I had coded it that way? Now it is better --- diff --git a/scripts/dbstructure.php b/scripts/dbstructure.php index d293fc8714..3787af2255 100755 --- a/scripts/dbstructure.php +++ b/scripts/dbstructure.php @@ -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(); diff --git a/src/Database/DBStructure.php b/src/Database/DBStructure.php index 68d5e42fed..c118d862f7 100644 --- a/src/Database/DBStructure.php +++ b/src/Database/DBStructure.php @@ -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";