check if the po/ folder does really exist...

(if it does not exist, the rest does not have to be done either)
This commit is contained in:
Nils Kneuper 2010-04-26 16:00:55 +00:00
parent 01274b8d41
commit f5034ccfa3

View File

@ -50,6 +50,8 @@ function grab_stats ($tob, $official, $packs) // trunk or branch, official (1) o
$po_dir = $basedir . "/" . $package . "/po/";
$domain = getdomain($package);
}
if (file_exists($po_dir)) // it can happen that the translation is broken in wescamp, this only happens when there is no po/ folder
{
$languages = file_get_contents($po_dir . "/LINGUAS");
$languages = substr($languages, 0, strlen($languages)-1);
$langs = explode(" ", $languages);
@ -71,6 +73,7 @@ function grab_stats ($tob, $official, $packs) // trunk or branch, official (1) o
fwrite($file, $serialized);
fclose($file);
}
}
}
echo "<h1>Getting stats for trunk</h1>\n";