X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fform.php;h=fcccb9c7524b4f4f78f4a5f35ec91842923485ec;hb=489099ca917d74ee2bdc406cb26f9e3269ade625;hp=6a181f79513856678f3a1c1659dd08772c5a8196;hpb=22481b1de6e7da8242db1dd086bce845ed9ecb45;p=quix0rs-gnu-social.git diff --git a/lib/form.php b/lib/form.php index 6a181f7951..fcccb9c752 100644 --- a/lib/form.php +++ b/lib/form.php @@ -91,7 +91,9 @@ class Form extends Widget function sessionToken() { - $this->out->hidden('token-' . $this->id() ?: common_random_hexstr(3), common_session_token(), 'token'); + if (strtolower($this->method()) == 'post') { + $this->out->hidden('token-' . $this->id() ?: common_random_hexstr(3), common_session_token(), 'token'); + } } /** @@ -188,9 +190,9 @@ class Form extends Widget return 'form'; } - function li() + function li($class=null) { - $this->out->elementStart('li'); + $this->out->elementStart('li', $class); } function unli()