mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-30 21:30:14 +02:00
[core] makes 'bridge' and 'format' parameters value less verbose
remove the requirement for 'Format' and 'Bridge' suffixes: https://example.com/?action=display&bridge=Twitter&format=Atom&u=user Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
@@ -139,10 +139,8 @@ CARD;
|
||||
|
||||
private static function getHelperButtonsFormat($formats){
|
||||
$buttons = '';
|
||||
|
||||
foreach( $formats as $name => $infos ){
|
||||
if ( isset($infos['name']) )
|
||||
$buttons .= '<button type="submit" name="format" value="' . $name . '">' . $infos['name'] . '</button>' . PHP_EOL;
|
||||
foreach( $formats as $name){
|
||||
$buttons .= '<button type="submit" name="format" value="' . $name . '">' . $name . '</button>' . PHP_EOL;
|
||||
}
|
||||
|
||||
return $buttons;
|
||||
|
Reference in New Issue
Block a user