Skip to content

Commit

Permalink
Fix: Too few arguments to function xrowSitemapItemModified::__constru…
Browse files Browse the repository at this point in the history
…ct() #12885
  • Loading branch information
Andy Caiger committed Apr 16, 2018
1 parent 5d1e23c commit 257cd43
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/sitemaps/index.php
Expand Up @@ -81,8 +81,7 @@ function addFiles( &$index, $dirname, $dirArray )
}
if ( $file->size() > 50 )
{
$date = new xrowSitemapItemModified();
$date->date = new DateTime( "@" . $file->mtime() );
$date = new xrowSitemapItemModified($file->mtime());
$loc = 'https://' . $_SERVER['HTTP_HOST'] . '/' . $file->name();
if ( !in_array( $loc, $GLOBALS['loc'] ) )
{
Expand Down

0 comments on commit 257cd43

Please sign in to comment.