Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php |
— | — | @@ -319,20 +319,16 @@ |
320 | 320 | if (array_key_exists('format', $params)) { |
321 | 321 | $format = strtolower(trim($params['format'])); |
322 | 322 | global $smwgResultFormats; |
323 | | - |
324 | 323 | if ( !array_key_exists($format, $smwgResultFormats) ) { |
325 | | - |
326 | | - $isAlias = false; |
327 | | - |
328 | | - foreach($smwgResultAliases as $mainFormat => $aliases) { |
| 324 | + $is_alias = false; |
| 325 | + foreach ($smwgResultAliases as $main_format => $aliases) { |
329 | 326 | if (in_array($format, $aliases)) { |
330 | | - $format = $mainFormat; |
331 | | - $isAlias = true; |
| 327 | + $format = $main_format; |
| 328 | + $is_alias = true; |
332 | 329 | continue; |
333 | 330 | } |
334 | 331 | } |
335 | | - |
336 | | - if (! $isAlias) $format = 'auto'; // If it is an unknown format, defaults to list/table again |
| 332 | + if (!$is_alias) $format = 'auto'; // If it is an unknown format, defaults to list/table again |
337 | 333 | } |
338 | 334 | } |
339 | 335 | return $format; |