From 835ff3c7fded2b6f8e4ef6b4c6a4f8a6e8fc6fc1 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 25 Apr 2013 17:45:05 +0200 Subject: [PATCH] Fixed cronjob --- spiderList/spiderList.xml | 2 +- .../lib/system/cronjob/RefreshSearchRobotsCronjob.class.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spiderList/spiderList.xml b/spiderList/spiderList.xml index 354f32ca1f..11832c2752 100644 --- a/spiderList/spiderList.xml +++ b/spiderList/spiderList.xml @@ -1338,4 +1338,4 @@ Zork http://www.zorkk.com - \ No newline at end of file + \ No newline at end of file diff --git a/wcfsetup/install/files/lib/system/cronjob/RefreshSearchRobotsCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/RefreshSearchRobotsCronjob.class.php index debdca142d..a603345314 100644 --- a/wcfsetup/install/files/lib/system/cronjob/RefreshSearchRobotsCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/RefreshSearchRobotsCronjob.class.php @@ -29,7 +29,7 @@ class RefreshSearchRobotsCronjob implements ICronjob { $xpath = $xml->xpath(); // fetch spiders - $spiders = $xpath->query('/data/spider'); + $spiders = $xpath->query('/ns:data/ns:spider'); if (!empty($spiders)) { // delete old entries @@ -40,8 +40,8 @@ class RefreshSearchRobotsCronjob implements ICronjob { $statementParameters = array(); foreach ($spiders as $spider) { $identifier = StringUtil::toLowerCase($spider->getAttribute('ident')); - $name = $xpath->query('name', $spider)->item(0); - $info = $xpath->query('url', $spider)->item(0); + $name = $xpath->query('ns:name', $spider)->item(0); + $info = $xpath->query('ns:url', $spider)->item(0); $statementParameters[$identifier] = array( 'spiderIdentifier' => $identifier, -- 2.20.1