mirror of
https://github.com/friendica/friendica
synced 2024-12-22 19:20:17 +00:00
Rename variable
This commit is contained in:
parent
8178f87e61
commit
6a2e8739d1
1 changed files with 4 additions and 4 deletions
|
@ -165,16 +165,16 @@ class PostMedia extends BaseEntity
|
||||||
* Get preview path for given media id relative to the base URL
|
* Get preview path for given media id relative to the base URL
|
||||||
*
|
*
|
||||||
* @param string $size One of the Proxy::SIZE_* constants
|
* @param string $size One of the Proxy::SIZE_* constants
|
||||||
* @param bool $blurred If "true", the preview will be blurred
|
* @param bool $blur If "true", the preview will be blurred
|
||||||
* @return string preview link
|
* @return string preview link
|
||||||
*/
|
*/
|
||||||
public function getPreviewPath(string $size = '', bool $blurred = false): string
|
public function getPreviewPath(string $size = '', bool $blur = false): string
|
||||||
{
|
{
|
||||||
$path = '/photo/preview/' .
|
$path = '/photo/preview/' .
|
||||||
(Proxy::getPixelsFromSize($size) ? Proxy::getPixelsFromSize($size) . '/' : '') .
|
(Proxy::getPixelsFromSize($size) ? Proxy::getPixelsFromSize($size) . '/' : '') .
|
||||||
$this->id;
|
$this->id;
|
||||||
|
|
||||||
if ($blurred) {
|
if ($blur) {
|
||||||
$path .= '?' . http_build_query(['blur' => true]);
|
$path .= '?' . http_build_query(['blur' => true]);
|
||||||
}
|
}
|
||||||
return $path;
|
return $path;
|
||||||
|
|
Loading…
Reference in a new issue