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

@ -122,7 +122,7 @@ class ExAuth
*/
private function isUser(array $aCommand)
{
$a = get_app();
$a = \get_app();
// Check if there is a username
if (!isset($aCommand[1])) {
@ -202,7 +202,7 @@ class ExAuth
*/
private function auth(array $aCommand)
{
$a = get_app();
$a = \get_app();
// check user authentication
if (sizeof($aCommand) != 4) {

View file

@ -94,7 +94,7 @@ class Network
$stamp1 = microtime(true);
$a = get_app();
$a = \get_app();
$parts = parse_url($url);
$path_parts = explode('/', defaults($parts, 'path', ''));
@ -251,7 +251,7 @@ class Network
return CurlResult::createErrorCurl($url);
}
$a = get_app();
$a = \get_app();
$ch = curl_init($url);
if (($redirects > 8) || (!$ch)) {
@ -604,7 +604,7 @@ class Network
*/
public static function finalUrl($url, $depth = 1, $fetchbody = false)
{
$a = get_app();
$a = \get_app();
$url = self::stripTrackingQueryParams($url);

View file

@ -111,7 +111,7 @@ class ParseUrl
*/
public static function getSiteinfo($url, $no_guessing = false, $do_oembed = true, $count = 1)
{
$a = get_app();
$a = \get_app();
$siteinfo = [];

View file

@ -126,7 +126,7 @@ class Temporal
*/
public static function getDateofBirthField($dob)
{
$a = get_app();
$a = \get_app();
list($year, $month, $day) = sscanf($dob, '%4d-%2d-%2d');