@@ -350,7 +350,6 @@ private function getDom($html = '')
350
350
// Because PJax isn't a full document, it kinda breaks DOMDocument
351
351
// Which expects a full document! (You know with a DOCTYPE, <HTML> <BODY> etc.. )
352
352
if (self ::isPjax () && (strpos ($ html , '<!DOCTYPE ' ) !== 0 || strpos ($ html , '<html ' ) !== 0 )) {
353
- $ this ->log ('pjax prefix trick in operation.. ' );
354
353
// Prefix the non-doctyped html snippet with an xml prefix
355
354
// This tricks DOMDocument into loading the HTML snippet
356
355
$ html = self ::xml_prefix . $ html ;
@@ -726,6 +725,7 @@ private function wrap(DOMDocument $doc, DOMElement $source, DOMElement $new_chil
726
725
727
726
// I'm against dynamically generated scripts, however in this case
728
727
// it makes it translateable.. so, win!
728
+ $ limit = $ this ->limit ; // Support for php 5.6
729
729
$ toggle_script ->nodeValue = <<<SCRIPT
730
730
731
731
// Setup handler to receive Attachments Preview Fetch events:
@@ -781,7 +781,7 @@ private function wrap(DOMDocument $doc, DOMElement $source, DOMElement $new_chil
781
781
782
782
$(document)
783
783
.on('ready pjax:success', function () {
784
- console.log("Triggering AttachmentPreview initial fetch (admin limit set to {$ this -> limit }).");
784
+ console.log("Triggering AttachmentPreview initial fetch (admin limit set to {$ limit }).");
785
785
$('.embedded:not(.hidden)')
786
786
.trigger('ap:fetch');
787
787
});
0 commit comments