Changing the ScraperService.php of this part:
$qb = Insert::intoTable('scraper_data');
$qb->setValue('url', $qb->param($url, ELGG_VALUE_STRING))
->setValue('hash', $qb->param(sha1($url), ELGG_VALUE_STRING))
->setValue('data', $qb->param(serialize($data)));
$result = $this->db->insertData($qb);
$dbprefix = elgg_get_config('dbprefix');
$query = "
INSERT INTO {$dbprefix}scraper_data
SET url = :url,
hash = :hash,
data = :data
ON DUPLICATE KEY UPDATE
data = :data
";
$result = $this->db->insertData($query, [
':url' => (string) $url,
':data' => serialize($data),
':hash' => sha1($url),
]);
Made me happy to, thanks a lot :-)
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.