summaryrefslogtreecommitdiff
path: root/lib/action.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-06-20 01:15:36 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-06-20 01:15:36 -0400
commitbf0be3ddb7226f428a3cc00a87c5a64f2113c00b (patch)
treef39f275c5ada6dc79d835eb78101596fd003f368 /lib/action.php
parent8ecd2a6b1dcfb21fae9a70bba65dfff3bb7503f1 (diff)
confirm email addresses
darcs-hash:20080620051536-5ed1f-231e427832dd20c861eb7a6dc1171315e90f455b.gz
Diffstat (limited to 'lib/action.php')
-rw-r--r--lib/action.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/action.php b/lib/action.php
index 06d3901d1..81b228312 100644
--- a/lib/action.php
+++ b/lib/action.php
@@ -68,4 +68,11 @@ class Action { // lawsuit
common_debug("User error '$code' on '$action': $msg", __FILE__);
common_user_error($msg, $code);
}
+
+ function self_url() {
+ $action = $this->trimmed('action');
+ $args = $this->args;
+ unset($args['action']);
+ return common_local_url($action, $args);
+ }
}