mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Avoid usage of Nextcloud API, use PHP function
This commit is contained in:
parent
a3c69b8310
commit
280dd851b3
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue