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";