fancy urls for show message, new message

darcs-hash:20080917180244-5ed1f-06e2ac2d8f094eacd12b316794b0599b57d76596.gz
This commit is contained in:
Evan Prodromou
2008-09-17 14:02:44 -04:00
parent ae6ba61d43
commit e42de1ccc1
4 changed files with 9 additions and 2 deletions

View File

@@ -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);
}