Fix download functionality

This commit is contained in:
Victor Shcherb 2012-01-08 14:53:47 +01:00
parent 6741e5a0d4
commit 401a0e272a

View file

@ -81,7 +81,7 @@ function update_count_of_downloads($file) {
//}
set_time_limit(0);
$xml = simplexml_load_file("indexes.xml");
$res = $xml->xpath('//download[@name="'.$file.'"]');
$res = $xml->xpath('//region[@name="'.$file.'"]');
if (count($res) > 0) {
$node = $res[0];
if($node["local"]) {