functions.php: fix after removing spanish language from rolling

This commit is contained in:
Silvan Calarco 2018-07-28 18:00:25 +02:00
parent 8f2d64a5da
commit 7d44cf61cb

View File

@ -57,6 +57,8 @@ add_filter('wp_nav_menu_items','add_search_box', 10, 2);
// openmamba downloads pages // openmamba downloads pages
function openmamba_download_link($milestone, $medium, $currarch, $ext, $mlword, $lang) { 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")); eval(file_get_contents("/var/ftp/pub/openmamba/media/".$milestone."/".$medium."/".$lang."/latest.inc.php"));
if ("$milestone" == "devel") { if ("$milestone" == "devel") {
$displaymilestone = "rolling"; $displaymilestone = "rolling";