Commit 94f9c3e7 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

not aborting anymore on xml error

parent b21aeb8b
......@@ -10,9 +10,9 @@ abstract class XmlSearchengine extends Searchengine
$resultsXml = simplexml_load_string($results);
} catch (\Exception $e) {
abort(500, "\n~~~~~~~~\n$results\n~~~~~~~~\nis not a valid xml string");
protected abstract function loadXmlResults($resultsXml);
abstract protected function loadXmlResults($resultsXml);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment