[add laconica methods to unauthed ones
Evan Prodromou <evan@prodromou.name>**20081230203747]
[implement api/laconica/version method
-Evan Prodromou <evan@prodromou.name>**20081230205939]
\ No newline at end of file
+Evan Prodromou <evan@prodromou.name>**20081230205939]
+[add some breaks so that switch statement works
+Evan Prodromou <evan@prodromou.name>**20081230210114]
\ No newline at end of file
$this->init_document('xml');
common_element('version', null, LACONICA_VERSION);
$this->end_document('xml');
+ break;
case 'json':
$this->init_document('json');
print '"'.LACONICA_VERSION.'"';
$this->end_document('json');
+ break;
default:
$this->client_error(_('API method not found!'), $code=404);
}
-hunk ./actions/twitapilaconica.php 56
-+ * URL: http://identi.ca/api/laconica/version.(xml|json)
-+ * Formats: xml, json
-hunk ./actions/twitapilaconica.php 70
-- common_server_error(_('API method under construction.'), 501);
-+ switch ($apidata['content-type']) {
-+ case 'xml':
-+ $this->init_document('xml');
-+ common_element('version', null, LACONICA_VERSION);
-+ $this->end_document('xml');
-+ case 'json':
-+ $this->init_document('json');
-+ print '"'.LACONICA_VERSION.'"';
-+ $this->end_document('json');
-+ default:
-+ $this->client_error(_('API method not found!'), $code=404);
-+ }
+hunk ./actions/twitapilaconica.php 75
++ break;
+hunk ./actions/twitapilaconica.php 80
++ break;
$this->init_document('xml');
common_element('version', null, LACONICA_VERSION);
$this->end_document('xml');
+ break;
case 'json':
$this->init_document('json');
print '"'.LACONICA_VERSION.'"';
$this->end_document('json');
+ break;
default:
$this->client_error(_('API method not found!'), $code=404);
}