diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2021-08-25 10:28:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-25 10:28:52 +0300 |
commit | 006aac9a0c62e39418c01c5e7348da974ef85c92 (patch) | |
tree | 33623bae328c7cfe424ada5719dc194b61f8f92b /lib | |
parent | 8cbf366cf0baa3753a5b032359df693c064c82e6 (diff) | |
parent | 280dd851b3e416e7f2fd50019762ac6e7e17e81e (diff) |
Merge pull request #28473 from nextcloud/fix-file-get-contents
Fix path of `file_get_contents`
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/legacy/OC_Image.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/legacy/OC_Image.php b/lib/private/legacy/OC_Image.php index 9906eca720a..1e00b606ea0 100644 --- a/lib/private/legacy/OC_Image.php +++ b/lib/private/legacy/OC_Image.php @@ -649,7 +649,7 @@ class OC_Image implements \OCP\IImage { default: // this is mostly file created from encrypted file - $this->resource = imagecreatefromstring(\OC\Files\Filesystem::file_get_contents(\OC\Files\Filesystem::getLocalPath($imagePath))); + $this->resource = imagecreatefromstring(file_get_contents($imagePath)); $iType = IMAGETYPE_PNG; $this->logger->debug('OC_Image->loadFromFile, Default', ['app' => 'core']); break; |