Yet more standards

This commit is contained in:
Hypolite Petovan 2017-05-02 22:42:29 -04:00
parent a76256e6e9
commit 3437e73ae4
6 changed files with 153 additions and 178 deletions

View file

@ -1,13 +1,14 @@
<?php
/**
* @package util
*/
* @package util
*/
use Friendica\App;
/*
* require boot.php
*/
* require boot.php
*/
require_once("boot.php");
$a = new App;
@ -18,15 +19,15 @@ load_translation_table($lang);
require_once("include/dba.php");
$db = new dba($db_host, $db_user, $db_pass, $db_data, false);
unset($db_host, $db_user, $db_pass, $db_data);
unset($db_host, $db_user, $db_pass, $db_data);
$build = get_config('system','build');
$build = get_config('system', 'build');
echo "Old DB VERSION: " . $build . "\n";
echo "New DB VERSION: " . DB_UPDATE_VERSION . "\n";
if($build != DB_UPDATE_VERSION) {
if ($build != DB_UPDATE_VERSION) {
echo "Updating database...";
check_db($a);
echo "Done\n";