Remove get_app() in favor of DI::app()
This commit is contained in:
parent
5d20cd7e16
commit
f0eea6f875
26 changed files with 110 additions and 97 deletions
20
boot.php
20
boot.php
|
@ -234,20 +234,6 @@ if (!defined('CURLE_OPERATION_TIMEDOUT')) {
|
|||
define('CURLE_OPERATION_TIMEDOUT', CURLE_OPERATION_TIMEOUTED);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Retrieve the App structure
|
||||
*
|
||||
* Useful in functions which require it but don't get it passed to them
|
||||
*
|
||||
* @deprecated since version 2018.09
|
||||
* @see DI::app()
|
||||
* @return App
|
||||
*/
|
||||
function get_app()
|
||||
{
|
||||
return DI::app();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Used to end the current process, after saving session state.
|
||||
* @deprecated
|
||||
|
@ -325,7 +311,7 @@ function notice($s)
|
|||
return;
|
||||
}
|
||||
|
||||
$a = \get_app();
|
||||
$a = DI::app();
|
||||
if (empty($_SESSION['sysmsg'])) {
|
||||
$_SESSION['sysmsg'] = [];
|
||||
}
|
||||
|
@ -343,7 +329,7 @@ function notice($s)
|
|||
*/
|
||||
function info($s)
|
||||
{
|
||||
$a = \get_app();
|
||||
$a = DI::app();
|
||||
|
||||
if (local_user() && PConfig::get(local_user(), 'system', 'ignore_info')) {
|
||||
return;
|
||||
|
@ -406,7 +392,7 @@ function feed_birthday($uid, $tz)
|
|||
*/
|
||||
function is_site_admin()
|
||||
{
|
||||
$a = \get_app();
|
||||
$a = DI::app();
|
||||
|
||||
$admin_email = Config::get('config', 'admin_email');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue