giscus comments
[mdref/mdref] / views / mdref.phtml
index cce2d1fa7c2651ffbcd39cd1a06b7891c842976c..725782eebbabc917325e26ae8eea30ec232d3bf5 100644 (file)
@@ -2,7 +2,7 @@
 
 <?= $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"; ?>