Update site

This commit is contained in:
Victor Shcherb 2012-11-15 18:25:46 +01:00
parent 94c24b26d0
commit 7fc4dfb3f9

View file

@ -1,5 +1,5 @@
<?php
function loadIndexesFromDir($out, $outputIndexes, $dir, $elementName, $mapNodes){
function loadIndexesFromDir($output, $outputIndexes, $dir, $elementName, $mapNodes){
$local_file = basename($_SERVER['PHP_SELF']) == basename(__FILE__);
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
@ -29,11 +29,12 @@ function loadIndexesFromDir($out, $outputIndexes, $dir, $elementName, $mapNodes)
if($localdate->getTimestamp() <= $exdate->getTimestamp()) {
continue;
}
if($out -> getAttribute("parts")) {
$out = $mapNodes[$indexName];
//if($out -> getAttribute("parts")) {
$outputIndexes->removeChild($out);
$out = $output->createElement( $elementName);
$outputIndexes->appendChild($out);
}
//}
} else {
$out = $output->createElement( $elementName);
$outputIndexes->appendChild($out);