X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FObject%2FImage.php;h=e25afd5e900aa3eb6bc47ed758f30f9ef19029ef;hb=5d20cd7e1698b2fddf68b3de610581676dbf572f;hp=972b48359f6d51b918b46605ed1f236c58a92b76;hpb=03bf1dcbd3c9760a15b22df9c04cc6f7b30fbb2d;p=friendica.git diff --git a/src/Object/Image.php b/src/Object/Image.php index 972b48359f..e25afd5e90 100644 --- a/src/Object/Image.php +++ b/src/Object/Image.php @@ -8,6 +8,7 @@ namespace Friendica\Object; use Exception; use Friendica\Core\Config; use Friendica\Core\System; +use Friendica\DI; use Friendica\Util\Images; use Imagick; use ImagickPixel; @@ -607,11 +608,9 @@ class Image $string = $this->asString(); - $a = \get_app(); - $stamp1 = microtime(true); file_put_contents($path, $string); - $a->getProfiler()->saveTimestamp($stamp1, "file", System::callstack()); + DI::profiler()->saveTimestamp($stamp1, "file", System::callstack()); } /**