workaround: "ubiquity ... m" devices are actually "ubiquity ... m1"

This commit is contained in:
Martin Schütte 2014-04-11 22:39:21 +02:00
parent 7ec6ddfb2c
commit b78d7a931e

View file

@ -84,6 +84,7 @@ function ff_hh_shortcode_versions( $atts, $content, $name ) {
$hw = str_replace('-', ' ', $hw);
$hw = str_replace('TP LINK TL ', 'TP-Link TL-', $hw);
} elseif (!strncmp($hw, 'ubiquiti', 8)) {
$hw = str_replace('-m', ' M1', $hw);
$hw = str_replace('-', ' ', $hw);
$hw = ucwords($hw);
}