Merge pull request #1 from mschuett/workaround-ubiquity-name

move Hamburg specific changes into master
This commit is contained in:
Martin Schütte 2014-05-25 21:27:45 +02:00
commit b3101f0dd5

View file

@ -3,7 +3,7 @@
Plugin Name: Freifunk Hamburg Firmware List Shortcode Plugin Name: Freifunk Hamburg Firmware List Shortcode
Plugin URI: http://mschuette.name/ Plugin URI: http://mschuette.name/
Description: Defines shortcodes to display Freifunk Hamburg Firmware versions Description: Defines shortcodes to display Freifunk Hamburg Firmware versions
Version: 0.2 Version: 0.2a
Author: Martin Schuette Author: Martin Schuette
Author URI: http://mschuette.name/ Author URI: http://mschuette.name/
Licence: 2-clause BSD Licence: 2-clause BSD
@ -84,6 +84,8 @@ function ff_hh_shortcode_versions( $atts, $content, $name ) {
$hw = str_replace('-', ' ', $hw); $hw = str_replace('-', ' ', $hw);
$hw = str_replace('TP LINK TL ', 'TP-Link TL-', $hw); $hw = str_replace('TP LINK TL ', 'TP-Link TL-', $hw);
} elseif (!strncmp($hw, 'ubiquiti', 8)) { } elseif (!strncmp($hw, 'ubiquiti', 8)) {
$hw = str_replace('ubiquiti-bullet-m', 'ubiquiti-bullet-m / nanostation-loco-m', $hw);
$hw = str_replace('-m', ' M2', $hw);
$hw = str_replace('-', ' ', $hw); $hw = str_replace('-', ' ', $hw);
$hw = ucwords($hw); $hw = ucwords($hw);
} }