We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e964e01 commit 7c7617bCopy full SHA for 7c7617b
src/Dom/Document.php
@@ -311,13 +311,13 @@ public function tidy() {
311
* introduced.
312
*/
313
public function loadComponents() {
314
- $componentDirectory = Path::get(Path::COMPONENT);
+ $templateDirectory = Path::get(Path::TEMPLATE);
315
$xpath = new \DOMXPath($this->domDocument);
316
$customNodeList = $xpath->query("//*[contains(name(), '-')]");
317
for($i = 0; $i < $customNodeList->length; $i++) {
318
$node = $customNodeList->item($i);
319
$componentHtmlFile = implode("/", [
320
- $componentDirectory,
+ $templateDirectory,
321
$node->tagName . ".html",
322
]);
323
if(!is_file($componentHtmlFile)) {
0 commit comments