]>
BookStack Code Mirror - bookstack/commitdiff
projects
/
bookstack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
inline
| side by side (parent:
5af6656
)
Changed DomNodeList access to work with hhvm
author
Dan Brown
<redacted>
Sun, 11 Oct 2015 16:45:32 +0000
(17:45 +0100)
committer
Dan Brown
<redacted>
Sun, 11 Oct 2015 16:45:32 +0000
(17:45 +0100)
app/Repos/PageRepo.php
patch
|
blob
|
history
diff --git
a/app/Repos/PageRepo.php
b/app/Repos/PageRepo.php
index 1f0c618191122dd5ca10c1821dfdb358bab5834b..448ba794370c6845ae7ff62d8f9a1f84c44daeef 100644
(file)
--- a/
app/Repos/PageRepo.php
+++ b/
app/Repos/PageRepo.php
@@
-99,7
+99,7
@@
class PageRepo
$doc->loadHTML($htmlText);
$container = $doc->documentElement;
$doc->loadHTML($htmlText);
$container = $doc->documentElement;
- $body = $container->childNodes
[0]
;
+ $body = $container->childNodes
->item(0)
;
$childNodes = $body->childNodes;
// Ensure no duplicate ids are used
$childNodes = $body->childNodes;
// Ensure no duplicate ids are used