1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Changed DomNodeList access to work with hhvm

This commit is contained in:
Dan Brown
2015-10-11 17:45:32 +01:00
parent 5af6656fae
commit 1520bde191

View File

@ -99,7 +99,7 @@ class PageRepo
$doc->loadHTML($htmlText); $doc->loadHTML($htmlText);
$container = $doc->documentElement; $container = $doc->documentElement;
$body = $container->childNodes[0]; $body = $container->childNodes->item(0);
$childNodes = $body->childNodes; $childNodes = $body->childNodes;
// Ensure no duplicate ids are used // Ensure no duplicate ids are used