<?= $file($entry->getPath()) ?>
-<?php if ($entry->isRoot() && $entry->getRepo()->hasStub($stub)) : ?>
+<?php if ($entry->isRoot() && $entry->getRepo()->hasStub($stub)) : $root = $entry; ?>
<h2 id="Editor.Stub:">Editor Stub:</h2>
<p>This extension provides a stub file four your editor's auto-completion.</p>
<?php include __DIR__ . "/stub.phtml"; ?>