From: Evan Prodromou Date: Thu, 26 Jun 2008 18:49:31 +0000 (-0400) Subject: fancy URLs for IM settings X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ec4a6c78127103b699ab7bad155747f060ffbb88;p=quix0rs-gnu-social.git fancy URLs for IM settings darcs-hash:20080626184931-34904-d83ce6fc0f3d126929e01804dafea466249b329b.gz --- 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); }