From ec4a6c78127103b699ab7bad155747f060ffbb88 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 26 Jun 2008 14:49:31 -0400 Subject: [PATCH] fancy URLs for IM settings darcs-hash:20080626184931-34904-d83ce6fc0f3d126929e01804dafea466249b329b.gz --- htaccess.sample | 1 + lib/util.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/htaccess.sample b/htaccess.sample index a5d2cd4e0a..9e621d9d60 100644 --- a/htaccess.sample +++ b/htaccess.sample @@ -25,6 +25,7 @@ RewriteRule ^settings/avatar$ index.php?action=avatar [L,QSA] RewriteRule ^settings/password$ index.php?action=password [L,QSA] RewriteRule ^settings/profile$ index.php?action=profilesettings [L,QSA] RewriteRule ^settings/openid$ index.php?action=openidsettings [L,QSA] +RewriteRule ^settings/im$ index.php?action=imsettings [L,QSA] RewriteRule ^notice/new$ index.php?action=newnotice [L,QSA] RewriteRule ^notice/(\d+)$ index.php?action=shownotice¬ice=$1 [L,QSA] diff --git a/lib/util.php b/lib/util.php index e3c00b31d9..e50582d1a9 100644 --- a/lib/util.php +++ b/lib/util.php @@ -695,6 +695,8 @@ function common_fancy_url($action, $args=NULL) { $path .= '/' . $args['code']; } return common_path($path); + case 'imsettings': + return common_path('settings/im'); default: return common_simple_url($action, $args); }