From 7d44cf61cb7d9ba00b093a57cc6d42bbc05d351b Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 28 Jul 2018 18:00:25 +0200 Subject: [PATCH] functions.php: fix after removing spanish language from rolling --- functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functions.php b/functions.php index 75e8a31..dfa067e 100644 --- a/functions.php +++ b/functions.php @@ -57,6 +57,8 @@ add_filter('wp_nav_menu_items','add_search_box', 10, 2); // openmamba downloads pages function openmamba_download_link($milestone, $medium, $currarch, $ext, $mlword, $lang) { + $latest_file = "/var/ftp/pub/openmamba/media/".$milestone."/".$medium."/".$lang."/latest.inc.php"; + if (!file_exists($latest_file)) return ""; eval(file_get_contents("/var/ftp/pub/openmamba/media/".$milestone."/".$medium."/".$lang."/latest.inc.php")); if ("$milestone" == "devel") { $displaymilestone = "rolling";