summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-09-17 14:02:44 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-09-17 14:02:44 -0400
commite42de1ccc12351ac301ed97ef3f7c9d46b41f688 (patch)
treea7df614b38b1270b3af7fb76477a38bc64ae37ba /lib
parentae6ba61d433bbd7634adc734b277963c3d8522f3 (diff)
fancy urls for show message, new message
darcs-hash:20080917180244-5ed1f-06e2ac2d8f094eacd12b316794b0599b57d76596.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/util.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php
index ac2f9af36..2fdcb37e3 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -934,6 +934,10 @@ function common_fancy_url($action, $args=NULL) {
} else {
return common_path($args['nickname'].'/favorites');
}
+ case 'showmessage':
+ return common_path('message/' . $args['id']);
+ case 'newmessage':
+ return common_path('message/new' . (($args) ? ('?' . http_build_query($args)) : ''));
default:
return common_simple_url($action, $args);
}