diff options
author | Evan Prodromou <evan@status.net> | 2010-12-15 16:48:28 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-12-15 16:48:28 -0500 |
commit | e16cb8c03a4490fd3db33f1429ccdce65acfdc18 (patch) | |
tree | c3bbcd74d9cf64b6c494a41809263fbc6d9e4fd9 /lib | |
parent | d840578aa0ad6284f57591aae87f87865905db3c (diff) | |
parent | 0330bad688e902df7c4a6f0db7faed52b9ccfbcb (diff) |
Merge branch '0.9.x' into righttoleave
Diffstat (limited to 'lib')
-rw-r--r-- | lib/router.php | 4 | ||||
-rw-r--r-- | lib/xrdaction.php | 12 |
2 files changed, 14 insertions, 2 deletions
diff --git a/lib/router.php b/lib/router.php index fc5f17cde..90bc9fa35 100644 --- a/lib/router.php +++ b/lib/router.php @@ -907,8 +907,8 @@ class Router // AtomPub API $m->connect('api/statusnet/app/service/:id.xml', - array('action' => 'ApiAtomService', - 'id' => Nickname::DISPLAY_FMT)); + array('action' => 'ApiAtomService'), + array('id' => Nickname::DISPLAY_FMT)); $m->connect('api/statusnet/app/service.xml', array('action' => 'ApiAtomService')); diff --git a/lib/xrdaction.php b/lib/xrdaction.php index 4377eab94..855ed1ea8 100644 --- a/lib/xrdaction.php +++ b/lib/xrdaction.php @@ -145,4 +145,16 @@ class XrdAction extends Action return (substr($uri, 0, 5) == 'acct:'); } + + /** + * Is this action read-only? + * + * @param array $args other arguments + * + * @return boolean is read only action? + */ + function isReadOnly($args) + { + return true; + } } |