This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
friendica
/
friendica
mirror of
https://github.com/friendica/friendica.git
Watch
1
Star
2
Fork
1
Code
Issues
Releases
49
Wiki
Activity
Browse Source
Avoid undefined class variables
pull/3778/head
Michael
3 years ago
parent
a29b7e7153
commit
225eea2ca6
10 changed files
with
25 additions
and
9 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
boot.php
+1
-1
include/auth_ejabberd.php
+1
-1
include/cli_startup.php
+1
-1
include/dbstructure.php
+3
-1
include/poller.php
+1
-1
include/shadowupdate.php
+3
-1
index.php
+3
-1
util/db_update.php
+4
-1
util/maintenance.php
+3
-1
util/typo.php
+ 5
- 0
boot.php
View File
@ -510,6 +510,11 @@ function startup() {
*/
function
get_app
()
{
global
$a
;
if
(
empty
(
$a
))
{
$a
=
new
App
(
dirname
(
__DIR__
));
}
return
$a
;
}
+ 1
- 1
include/auth_ejabberd.php
View File
@ -49,7 +49,7 @@ require_once("boot.php");
global
$a
;
if
(
is_null
(
$a
))
{
if
(
empty
(
$a
))
{
$a
=
new
App
(
dirname
(
__DIR__
));
}
+ 1
- 1
include/cli_startup.php
View File
@ -10,7 +10,7 @@ require_once('boot.php');
function
cli_startup
()
{
global
$a
;
if
(
is_null
(
$a
))
{
if
(
empty
(
$a
))
{
$a
=
new
App
(
dirname
(
__DIR__
));
}
+ 1
- 1
include/dbstructure.php
View File
@ -1760,7 +1760,7 @@ function db_definition() {
function
dbstructure_run
(
&
$argv
,
&
$argc
)
{
global
$a
;
if
(
is_null
(
$a
))
{
if
(
empty
(
$a
))
{
$a
=
new
App
(
dirname
(
__DIR__
));
}
+ 3
- 1
include/poller.php
View File
@ -23,7 +23,9 @@ function poller_run($argv, $argc){
$poller_up_start
=
microtime
(
true
);
$a
=
new
App
(
dirname
(
__DIR__
));
if
(
empty
(
$a
))
{
$a
=
new
App
(
dirname
(
__DIR__
));
}
require_once
"
.htconfig.php
"
;
require_once
"
include/dba.php
"
;
+ 1
- 1
include/shadowupdate.php
View File
@ -9,7 +9,7 @@ require_once("include/threads.php");
function
shadowupdate_run
(
&
$argv
,
&
$argc
){
global
$a
;
if
(
is_null
(
$a
))
{
if
(
empty
(
$a
))
{
$a
=
new
App
(
dirname
(
__DIR__
));
}
+ 3
- 1
index.php
View File
@ -20,7 +20,9 @@ use Friendica\Core\Config;
require_once
'boot.php'
;
require_once
'object/BaseObject.php'
;
$a
=
new
App
(
__DIR__
);
if
(
empty
(
$a
))
{
$a
=
new
App
(
__DIR__
);
}
BaseObject
::
set_app
(
$a
);
// We assume that the index.php is called by a frontend process
+ 3
- 1
util/db_update.php
View File
@ -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
();
+ 4
- 1
util/maintenance.php
View File
@ -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
();
+ 3
- 1
util/typo.php
View File
@ -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'
];
Write
Preview
Loading…
Cancel
Save