From: Chimo Date: Tue, 10 Feb 2015 15:53:24 +0000 (-0500) Subject: Add 'statusnet_textarea' backward-compatibility X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7cea3f9f1185fad49ac9f83c02549a47e213b253;p=quix0rs-gnu-social.git Add 'statusnet_textarea' backward-compatibility --- diff --git a/actions/newnotice.php b/actions/newnotice.php index 0432064a42..692ba765c8 100644 --- a/actions/newnotice.php +++ b/actions/newnotice.php @@ -74,9 +74,9 @@ class NewnoticeAction extends FormAction } } - if ($this->trimmed('content')) { - $this->formOpts['content'] = $this->trimmed('content'); - } + // Backwards compatibility for "share this" widget things. + // If no 'content', use 'status_textarea' + $this->formOpts['content'] = $this->trimmed('content') ?: $this->trimmed('status_textarea'); } /**