mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-11 01:24:27 +02: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
|
@ -19,15 +19,15 @@ if (!file_exists("boot.php") && (sizeof($_SERVER["argv"]) != 0)) {
|
|||
require_once("boot.php");
|
||||
|
||||
function poller_run($argv, $argc){
|
||||
global $a, $db, $poller_up_start, $poller_db_duration;
|
||||
global $a, $poller_up_start, $poller_db_duration;
|
||||
|
||||
$poller_up_start = microtime(true);
|
||||
|
||||
$a = new App(dirname(__DIR__));
|
||||
|
||||
@include(".htconfig.php");
|
||||
require_once("include/dba.php");
|
||||
$db = new dba($db_host, $db_user, $db_pass, $db_data);
|
||||
require_once ".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