Update site
This commit is contained in:
parent
94c24b26d0
commit
7fc4dfb3f9
1 changed files with 5 additions and 4 deletions
|
@ -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)) {
|
||||||
|
@ -29,11 +29,12 @@ 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);
|
||||||
|
|
Loading…
Reference in a new issue