Use a constant for the profile photo album

This commit is contained in:
Michael 2021-10-14 04:12:00 +00:00
parent f05fecaec1
commit a33185f835
7 changed files with 17 additions and 53 deletions

View file

@ -637,24 +637,6 @@ class Image
$this->height = imagesy($this->image);
}
/**
* @param string $path file path
* @return mixed
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public function saveToFilePath($path)
{
if (!$this->isValid()) {
return false;
}
$string = $this->asString();
DI::profiler()->stopRecording('file');
file_put_contents($path, $string);
DI::profiler()->stopRecording();
}
/**
* Magic method allowing string casting of an Image object
*