|
|
@@ -182,6 +182,7 @@ function extractMementoInfo($file) { |
|
|
|
$content = $file->getContent(); |
|
|
|
$DOM = new DOMDocument; |
|
|
|
$DOM->loadHTML($content); |
|
|
|
if (!$DOM->documentElement) return null; // possibly $content was not HTML at all. |
|
|
|
$headElement = $DOM->documentElement->getElementsByTagName('head')[0]; |
|
|
|
if (!$headElement) return null; // possibly $content was not HTML at all. |
|
|
|
$originalUrls = getOriginalUrls($headElement); |
|
|
|