summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2009-10-09 14:42:01 -0700
committerZach Copley <zach@status.net>2009-10-09 14:42:01 -0700
commitf746993c2bfb674d397cf095a2ab2ff7e757818b (patch)
tree4b2296aff22c5f5edf4cb834c2ad6566b6696097 /lib
parentbb08611def2309711f91c1ab6cdab92fb7c069b2 (diff)
$format is used by every API action. Set it in the base class.
Diffstat (limited to 'lib')
-rw-r--r--lib/api.php2
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;
}