diff options
Diffstat (limited to 'util/db_update.php')
-rw-r--r-- | util/db_update.php | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/util/db_update.php b/util/db_update.php index 775a6585a..ceef061c1 100644 --- a/util/db_update.php +++ b/util/db_update.php @@ -1,24 +1,14 @@ <?php + + /** * @package util */ -/* -* require boot.php -*/ -require_once("boot.php"); - -$a = new App; -@include(".htconfig.php"); - -$lang = get_best_language(); -load_translation_table($lang); - -require_once("dba.php"); -$db = new dba($db_host, $db_user, $db_pass, $db_data, false); - unset($db_host, $db_user, $db_pass, $db_data); +require_once('boot.php'); +require_once('include/cli_startup.php'); -$build = get_config('system','build'); +cli_startup(); echo "Old DB VERSION: " . $build . "\n"; echo "New DB VERSION: " . DB_UPDATE_VERSION . "\n"; |