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

@ -652,7 +652,7 @@ class Image
$string = $this->asString();
$a = get_app();
$a = \get_app();
$stamp1 = microtime(true);
file_put_contents($path, $string);
@ -730,7 +730,7 @@ class Image
Logger::log('Image: guessType: '.$filename . ($fromcurl?' from curl headers':''), Logger::DEBUG);
$type = null;
if ($fromcurl) {
$a = get_app();
$a = \get_app();
$headers=[];
$h = explode("\n", $header);
foreach ($h as $l) {
@ -798,7 +798,7 @@ class Image
} else {
$tempfile = tempnam(get_temppath(), "cache");
$a = get_app();
$a = \get_app();
$stamp1 = microtime(true);
file_put_contents($tempfile, $img_str);
$a->saveTimestamp($stamp1, "file");