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