]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add some breaks so that switch statement works
authorEvan Prodromou <evan@prodromou.name>
Tue, 30 Dec 2008 21:01:14 +0000 (16:01 -0500)
committerEvan Prodromou <evan@prodromou.name>
Tue, 30 Dec 2008 21:01:14 +0000 (16:01 -0500)
darcs-hash:20081230210114-84dde-4fbf5b718841ae1c46129a6b58d6b4e239d8be09.gz

_darcs/inventory
_darcs/patches/20081230210114-84dde-4fbf5b718841ae1c46129a6b58d6b4e239d8be09.gz [new file with mode: 0644]
_darcs/pristine/actions/twitapilaconica.php
_darcs/tentative_pristine
actions/twitapilaconica.php

index 4a5f9fd97686325e9b8f661b5dd0b87b7a069962..da728be6f2e08a561325fd536cb2756e2d4e4ddc 100644 (file)
@@ -104,4 +104,6 @@ Evan Prodromou <evan@prodromou.name>**20081230202513]
 [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
diff --git a/_darcs/patches/20081230210114-84dde-4fbf5b718841ae1c46129a6b58d6b4e239d8be09.gz b/_darcs/patches/20081230210114-84dde-4fbf5b718841ae1c46129a6b58d6b4e239d8be09.gz
new file mode 100644 (file)
index 0000000..1374e3b
Binary files /dev/null and b/_darcs/patches/20081230210114-84dde-4fbf5b718841ae1c46129a6b58d6b4e239d8be09.gz differ
index 4ecbf94e17c0c81389615f86c1a95f8d5ef5e351..6d3490abdb7026de0a8e59501ea8b48ddadf5b02 100644 (file)
@@ -72,10 +72,12 @@ class TwitapilaconicaAction extends TwitterapiAction
             $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);
         }
index 02f15d0f665515bb73b2fc8c2ee0e018abc68c5b..8dfaf737ab5f3ad8915bbfdff0ccd63692fcd1d7 100644 (file)
@@ -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;
index 4ecbf94e17c0c81389615f86c1a95f8d5ef5e351..6d3490abdb7026de0a8e59501ea8b48ddadf5b02 100644 (file)
@@ -72,10 +72,12 @@ class TwitapilaconicaAction extends TwitterapiAction
             $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);
         }