summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAdrian Lang <mail@adrianlang.de>2009-02-25 16:59:32 +0100
committerEvan Prodromou <evan@controlyourself.ca>2009-02-27 15:45:24 -0800
commitd92beda526f1495d16b54880a40ebb3c7d7e5f2e (patch)
treef67bee051840d381a634d949cb1a528cca15eba4 /lib
parent3f7d70c5e4c5e91d552cc629a9371109cb859bc3 (diff)
Add route for new message to user.
Diffstat (limited to 'lib')
-rw-r--r--lib/router.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/router.php b/lib/router.php
index 95ce77e5e..4b70c0150 100644
--- a/lib/router.php
+++ b/lib/router.php
@@ -154,6 +154,7 @@ class Router
array('notice' => '[0-9]+'));
$m->connect('message/new', array('action' => 'newmessage'));
+ $m->connect('message/new?to=:to', array('action' => 'newmessage'), array('to' => '[A-Za-z0-9_-]'));
$m->connect('message/:message',
array('action' => 'showmessage'),
array('message' => '[0-9]+'));