.bin & .tar werden für netgear bei factory durch .img ersetzt

This commit is contained in:
root 2015-07-15 21:02:09 +02:00
parent 2d0e184f81
commit 026d4aafe1

View file

@ -101,6 +101,10 @@ function ff_hh_shortcode_versions( $atts, $content, $name ) {
$hw_ver_links = array();
foreach ( $versions as $hw_ver => $filename ) {
$filename = str_replace( '-sysupgrade', '', $filename );
if (strpos($filename,'netgear') !== false) {
$filename = str_replace( '.bin', '.img', $filename );
$filename = str_replace( '.tar', '.img', $filename );
}
$hw_ver_links[] = sprintf(
'<a href="%s%s">%s.x</a>',
FF_HH_STABLE_BASEDIR.'factory/',