diff --git a/freifunk-versions.php b/freifunk-versions.php index 9941cc1..e0fc1a4 100644 --- a/freifunk-versions.php +++ b/freifunk-versions.php @@ -100,6 +100,10 @@ function ff_hh_shortcode_versions( $atts, $content, $name ) { // factory versions $hw_ver_links = array(); foreach ( $versions as $hw_ver => $filename ) { + if ( strpos( $hw, 'Unifi Ac Pro' ) || strpos( $hw, 'Unifi Ac Lite' ) ) { + continue; + } + $filename = str_replace( '-sysupgrade', '', $filename ); if (strpos($filename,'netgear') !== false) { $filename = str_replace( '.bin', '.img', $filename ); @@ -111,7 +115,11 @@ function ff_hh_shortcode_versions( $atts, $content, $name ) { $filename, $hw_ver ); } - $outstr .= 'Hardware Ver. ' . join( ', ', $hw_ver_links ) . ''; + if ( count($hw_ver_links) > 0) { + $outstr .= 'Hardware Ver. ' . join( ', ', $hw_ver_links ) . ''; + } else { + $outstr .= 'Benutze das Image
zur Aktualisierung
'; + } // sysupgrade versions $hw_ver_links = array();