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

@ -64,7 +64,7 @@ class Compose extends BaseModule
}
/// @TODO Retrieve parameter from router
$posttype = static::$parameters['type'] ?? Item::PT_ARTICLE;
$posttype = $this->parameters['type'] ?? Item::PT_ARTICLE;
if (!in_array($posttype, [Item::PT_ARTICLE, Item::PT_PERSONAL_NOTE])) {
switch ($posttype) {
case 'note':