Avoid undefined class variables
This commit is contained in:
parent
a29b7e7153
commit
225eea2ca6
10 changed files with 25 additions and 9 deletions
|
@ -11,7 +11,9 @@ use Friendica\App;
|
|||
*/
|
||||
require_once("boot.php");
|
||||
|
||||
$a = new App(dirname(__DIR__));
|
||||
if (empty($a)) {
|
||||
$a = new App(dirname(__DIR__));
|
||||
}
|
||||
@include(".htconfig.php");
|
||||
|
||||
$lang = get_browser_language();
|
||||
|
|
|
@ -5,7 +5,10 @@ use Friendica\Core\Config;
|
|||
|
||||
require_once("boot.php");
|
||||
|
||||
$a = new App(dirname(__DIR__));
|
||||
if (empty($a)) {
|
||||
$a = new App(dirname(__DIR__));
|
||||
}
|
||||
|
||||
@include(".htconfig.php");
|
||||
|
||||
$lang = get_browser_language();
|
||||
|
|
|
@ -13,7 +13,9 @@ ini_set('log_errors', '0');
|
|||
|
||||
include 'boot.php';
|
||||
|
||||
$a = new App(dirname(__DIR__));
|
||||
if (empty($a)) {
|
||||
$a = new App(dirname(__DIR__));
|
||||
}
|
||||
|
||||
if (x($a->config, 'php_path')) {
|
||||
$phpath = $a->config['php_path'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue