Escape global namespaced get_app() calls

- Add deprecated status
This commit is contained in:
Hypolite Petovan 2018-12-27 19:22:35 -05:00
parent b8030313e5
commit 5e1ceb57de
52 changed files with 135 additions and 133 deletions

View file

@ -280,7 +280,7 @@ class Profile
*/
private static function sidebar($profile, $block = 0, $show_connect = true)
{
$a = get_app();
$a = \get_app();
$o = '';
$location = false;
@ -551,7 +551,7 @@ class Profile
public static function getBirthdays()
{
$a = get_app();
$a = \get_app();
$o = '';
if (!local_user() || $a->is_mobile || $a->is_tablet) {
@ -649,7 +649,7 @@ class Profile
public static function getEventsReminderHTML()
{
$a = get_app();
$a = \get_app();
$o = '';
if (!local_user() || $a->is_mobile || $a->is_tablet) {
@ -1090,7 +1090,7 @@ class Profile
*/
public static function openWebAuthInit($token)
{
$a = get_app();
$a = \get_app();
// Clean old OpenWebAuthToken entries.
OpenWebAuthToken::purge('owt', '3 MINUTE');