aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authoracsfer <carlos@reendex.com>2021-08-18 15:21:05 +0200
committerGitHub <noreply@github.com>2021-08-18 15:21:05 +0200
commit280dd851b3e416e7f2fd50019762ac6e7e17e81e (patch)
treee9bebb977c1c9550bbdcc388d1510532706143ad /lib
parenta3c69b831043593d32aa8256384e10d03bfeab76 (diff)
downloadnextcloud-server-280dd851b3e416e7f2fd50019762ac6e7e17e81e.tar.gz
nextcloud-server-280dd851b3e416e7f2fd50019762ac6e7e17e81e.zip
Avoid usage of Nextcloud API, use PHP function
Diffstat (limited to 'lib')
-rw-r--r--lib/private/legacy/OC_Image.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/legacy/OC_Image.php b/lib/private/legacy/OC_Image.php
index 900be3c63af..c4d86946749 100644
--- a/lib/private/legacy/OC_Image.php
+++ b/lib/private/legacy/OC_Image.php
@@ -641,7 +641,7 @@ class OC_Image implements \OCP\IImage {
default:
// this is mostly file created from encrypted file
- $this->resource = imagecreatefromstring(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;