summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-06-19 12:18:14 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-06-19 12:18:14 -0400
commit50c7e4c722a39582c185eafe452f0b321dd39e7e (patch)
tree3a228cbd8e75d046336758a87089d8a43878bf3a /lib/util.php
parent912947c690f26f4b1a20b35fbc74288b031cd0c9 (diff)
posting from a form takes you back to the same page0.3.3
darcs-hash:20080619161814-5ed1f-5add55346470e71a53a676d39617062acc0f19bf.gz
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index a4c30cbe4..88ddbcc00 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -650,7 +650,7 @@ function common_profile_url($nickname) {
# Don't call if nobody's logged in
-function common_notice_form() {
+function common_notice_form($action=NULL) {
$user = common_current_user();
assert(!is_null($user));
common_element_start('form', array('id' => 'status_form',
@@ -663,6 +663,9 @@ function common_notice_form() {
common_element('textarea', array('id' => 'status_textarea',
'name' => 'status_textarea'),
' ');
+ if ($action) {
+ common_hidden('returnto', $action);
+ }
common_element('input', array('id' => 'status_submit',
'name' => 'status_submit',
'type' => 'submit',