mirror of
https://github.com/friendica/friendica
synced 2025-04-24 06:30:13 +00:00
Use a constant for the profile photo album
This commit is contained in:
parent
f05fecaec1
commit
a33185f835
7 changed files with 17 additions and 53 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue