Code can alter file behaviour, so should be omitted from sitemap results
(to be replaced by custom index in following commit).
Removes wanted nieuws articles, but also random foto descriptions and
some accidental html files.
+ public $handlers = [];
+
function __construct($path = '.')
{
$this->iterator = new RecursiveCallbackFilterIterator(
function __construct($path = '.')
{
$this->iterator = new RecursiveCallbackFilterIterator(
# skip hidden files and directories
return FALSE;
}
# skip hidden files and directories
return FALSE;
}
+ if (file_exists($current->getFilename() . '/index.php')) {
+ # contents better provided by handler code
+ $this->handlers[ $current->getPathname() ] = $current;
+ return FALSE;
+ }
if ($current->isLink()) {
# ignore symlinks, original contents only
return FALSE;
if ($current->isLink()) {
# ignore symlinks, original contents only
return FALSE;