mirror of
https://github.com/friendica/friendica
synced 2025-04-23 07:10:14 +00:00
Escape global namespaced get_app() calls
- Add deprecated status
This commit is contained in:
parent
b8030313e5
commit
5e1ceb57de
52 changed files with 135 additions and 133 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue