]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/action.php
using bogus attribute of $rm
[quix0rs-gnu-social.git] / lib / action.php
index 06d3901d1439e6e9b90acca2710df6ca3e179f59..81b2283124575c15cbb61ceee0c54d1a031e56ff 100644 (file)
@@ -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);
+       }
 }