From e156d1fc35b35dcf3a7d21fb84606f41c844bf0f Mon Sep 17 00:00:00 2001 From: Alexander Dietrich Date: Fri, 15 Mar 2019 22:16:52 +0100 Subject: [PATCH] Add URL workaround for multi-domain firmware --- freifunk-versions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/freifunk-versions.php b/freifunk-versions.php index ab811a5..b3190c0 100644 --- a/freifunk-versions.php +++ b/freifunk-versions.php @@ -80,6 +80,7 @@ function ff_hh_shortcode_latestversion( $atts, $content, $name ) { } $branch_url = FF_HH_UPDATES_URL . $domain . '/' . $branch; + if ( $domain === 'multi' ) { $branch_url = $branch_url . '/images'; } $sw_ver = ff_hh_getlatest( $branch_url, $domain, $branch ); $outstr = "$sw_ver"; return $outstr; @@ -112,6 +113,7 @@ function ff_hh_shortcode_versions( $atts, $content, $name ) { } $branch_url = FF_HH_UPDATES_URL . $domain . '/' . $branch; + if ( $domain === 'multi' ) { $branch_url = $branch_url . '/images'; } $manifest = ff_hh_getmanifest( $branch_url, $domain, $branch ); $outstr = "
";