diff options
author | Zach Copley <zach@status.net> | 2009-10-09 14:42:01 -0700 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2009-10-09 14:42:01 -0700 |
commit | f746993c2bfb674d397cf095a2ab2ff7e757818b (patch) | |
tree | 4b2296aff22c5f5edf4cb834c2ad6566b6696097 /lib | |
parent | bb08611def2309711f91c1ab6cdab92fb7c069b2 (diff) |
$format is used by every API action. Set it in the base class.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/api.php b/lib/api.php index 93b4a7513..fb51d5260 100644 --- a/lib/api.php +++ b/lib/api.php @@ -43,6 +43,7 @@ if (!defined('STATUSNET')) { class ApiAction extends Action { + var $format = null; /** * Initialization. @@ -55,6 +56,7 @@ class ApiAction extends Action function prepare($args) { parent::prepare($args); + $this->format = $this->arg('format'); return true; } |