From 481c6d2316f3a31c85235cb64fbd198a08a92211 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 30 Dec 2008 16:01:14 -0500 Subject: add some breaks so that switch statement works darcs-hash:20081230210114-84dde-4fbf5b718841ae1c46129a6b58d6b4e239d8be09.gz --- _darcs/tentative_pristine | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) (limited to '_darcs/tentative_pristine') diff --git a/_darcs/tentative_pristine b/_darcs/tentative_pristine index 02f15d0f6..8dfaf737a 100644 --- a/_darcs/tentative_pristine +++ b/_darcs/tentative_pristine @@ -1,17 +1,4 @@ -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; -- cgit v1.2.3-54-g00ecf