1
0
Fork 0

Switch static::$parameters to $this->parameters

This commit is contained in:
Philipp Holzer 2021-11-14 23:19:25 +01:00
commit 5879535822
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
116 changed files with 321 additions and 314 deletions

View file

@ -37,11 +37,11 @@ class Attach extends BaseModule
public function rawContent()
{
$a = DI::app();
if (empty(static::$parameters['item'])) {
if (empty($this->parameters['item'])) {
throw new \Friendica\Network\HTTPException\BadRequestException();
}
$item_id = intval(static::$parameters['item']);
$item_id = intval($this->parameters['item']);
// Check for existence
$item = MAttach::exists(['id' => $item_id]);