mirror of
https://github.com/friendica/friendica
synced 2025-04-27 16:30:10 +00:00
"dba" is now a static class
This commit is contained in:
parent
dbcd1d1ae3
commit
a29b7e7153
14 changed files with 203 additions and 341 deletions
|
@ -7,18 +7,16 @@ require_once("boot.php");
|
|||
require_once("include/threads.php");
|
||||
|
||||
function shadowupdate_run(&$argv, &$argc){
|
||||
global $a, $db;
|
||||
global $a;
|
||||
|
||||
if (is_null($a)) {
|
||||
$a = new App(dirname(__DIR__));
|
||||
}
|
||||
|
||||
if (is_null($db)) {
|
||||
@include(".htconfig.php");
|
||||
require_once("include/dba.php");
|
||||
$db = new dba($db_host, $db_user, $db_pass, $db_data);
|
||||
unset($db_host, $db_user, $db_pass, $db_data);
|
||||
}
|
||||
@include(".htconfig.php");
|
||||
require_once("include/dba.php");
|
||||
dba::connect($db_host, $db_user, $db_pass, $db_data);
|
||||
unset($db_host, $db_user, $db_pass, $db_data);
|
||||
|
||||
Config::load();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue