Index: trunk/extensions/OpenSearchXml/ApiOpenSearchXml.php |
— | — | @@ -58,13 +58,14 @@ |
59 | 59 | |
60 | 60 | protected function inXmlMode() { |
61 | 61 | $format = $this->validateFormat(); |
62 | | - return ($format == 'xml' || $format == 'xmlfm'); |
| 62 | + return ( $format == 'xml' || $format == 'xmlfm' ); |
63 | 63 | } |
64 | 64 | |
65 | 65 | public function execute() { |
66 | | - if (!$this->inXmlMode()) { |
| 66 | + if ( !$this->inXmlMode() ) { |
67 | 67 | // Pass back to the JSON defaults |
68 | | - return parent::execute(); |
| 68 | + parent::execute(); |
| 69 | + return; |
69 | 70 | } |
70 | 71 | |
71 | 72 | $params = $this->extractRequestParams(); |
— | — | @@ -87,7 +88,6 @@ |
88 | 89 | $result->addValue( null, 'Section', $items ); |
89 | 90 | } |
90 | 91 | |
91 | | - |
92 | 92 | public function getAllowedParams() { |
93 | 93 | $params = parent::getAllowedParams(); |
94 | 94 | $params['format'] = array( |