1
0
Fork 0
mirror of https://github.com/friendica/friendica-directory synced 2024-11-14 16:17:35 +01:00

Add support for multi-word custom HTML page name

This commit is contained in:
Hypolite Petovan 2018-11-19 22:43:34 -05:00
parent 6d4354c97f
commit b61afa9502

View file

@ -98,7 +98,7 @@
</li>
<?php foreach ($pages as $page):?>
<li class="nav-item">
<a class="nav-link" href="<?php echo strtolower(basename($page, '.html'))?>"><?php echo basename($page, '.html')?></a>
<a class="nav-link" href="<?php echo strtolower(basename($page, '.html'))?>"><?php echo str_replace('_', ' ', basename($page, '.html'))?></a>
</li>
<?php endforeach;?>
</ul>