From bf0be3ddb7226f428a3cc00a87c5a64f2113c00b Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 20 Jun 2008 01:15:36 -0400 Subject: confirm email addresses darcs-hash:20080620051536-5ed1f-231e427832dd20c861eb7a6dc1171315e90f455b.gz --- lib/action.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/action.php') 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); + } } -- cgit v1.2.3-54-g00ecf