Skip to content

Commit

Permalink
Show ID of the glossary
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskonnertz committed May 7, 2022
1 parent 958891d commit d2e0c25
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions demos/demo_glossaries.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,9 @@ function miniAutoloader(string $class)
$glossaries = $deepLy->getGlossaries();

if (count($glossaries) > 0) {
$entries = $deepLy->getGlossaryEntries($glossaries[count($glossaries) - 1]->glossaryId);
echo '<div class="success">Glossary Entries: <pre>';
$id = $glossaries[count($glossaries) - 1]->glossaryId;
$entries = $deepLy->getGlossaryEntries($id);
echo '<div class="success">Glossary Entries of glossary ' . $id . ': <pre>';
print_r($entries);
echo '</pre></div>';
} else {
Expand Down

0 comments on commit d2e0c25

Please sign in to comment.