From e233ea15303491b541bc3ab70224925a65cb8394 Mon Sep 17 00:00:00 2001 From: 4ndr3 <4ndr3@users.noreply.github.com> Date: Sun, 18 Jan 2015 22:25:35 +0100 Subject: [PATCH] =?UTF-8?q?Buffalo=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- freifunk-versions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/freifunk-versions.php b/freifunk-versions.php index ae0edc2..a6ec711 100644 --- a/freifunk-versions.php +++ b/freifunk-versions.php @@ -156,6 +156,10 @@ function ff_hh_beautify_hw_name( $hw, $discard_vendor = '' ) { $hw = str_replace( '-', ' ', $hw ); $hw = str_replace( 'linksys ', 'Linksys ', $hw ); $hw = str_replace( ' wrt', ' WRT-', $hw ); + } elseif ( ! strncmp( $hw, 'buffalo', 7 ) ) { + if ( $discard_vendor ) $hw = str_replace( $discard_vendor, '', $hw ); + $hw = str_replace( 'wzr-', 'WZR-', $hw ); + $hw = str_replace( '-', ' ', $hw ); } return $hw; }