]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/newnotice.php
add stub email canonicalizer
[quix0rs-gnu-social.git] / actions / newnotice.php
index 9fc9103188cabb2b5605bc81b0d3185c2b6975fc..e20932b55ff9b00fb817c92d445d6fe4bc718e3a 100644 (file)
@@ -27,7 +27,7 @@ class NewnoticeAction extends Action {
 
                if (!common_logged_in()) {
                        common_user_error(_t('Not logged in.'));
-               } else if ($this->arg('METHOD') == 'POST') {
+               } else if ($_SERVER['REQUEST_METHOD'] == 'POST') {
                        $id = $this->save_new_notice();
 
                        if ($id) {