Fix download functionality
This commit is contained in:
parent
6741e5a0d4
commit
401a0e272a
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ function update_count_of_downloads($file) {
|
||||||
//}
|
//}
|
||||||
set_time_limit(0);
|
set_time_limit(0);
|
||||||
$xml = simplexml_load_file("indexes.xml");
|
$xml = simplexml_load_file("indexes.xml");
|
||||||
$res = $xml->xpath('//download[@name="'.$file.'"]');
|
$res = $xml->xpath('//region[@name="'.$file.'"]');
|
||||||
if (count($res) > 0) {
|
if (count($res) > 0) {
|
||||||
$node = $res[0];
|
$node = $res[0];
|
||||||
if($node["local"]) {
|
if($node["local"]) {
|
||||||
|
|
Loading…
Reference in a new issue