show reindex feature on indexed pages only

This commit is contained in:
yggverse 2024-03-22 23:10:11 +02:00
parent fef2b1abec
commit bb948fed35

View File

@ -488,7 +488,7 @@ if ($config->webui->reindex->enabled)
<h3><?php echo _('Cache') ?></h3> <h3><?php echo _('Cache') ?></h3>
<pre><?php echo htmlentities($document->body) ?></pre> <pre><?php echo htmlentities($document->body) ?></pre>
<?php } ?> <?php } ?>
<?php if ($config->webui->reindex->enabled) { ?> <?php if ($config->webui->reindex->enabled && $document->get('time')) { ?>
<h3><?php echo _('Reindex') ?></h3> <h3><?php echo _('Reindex') ?></h3>
<div> <div>
<?php if ($document->get('reindex')) { ?> <?php if ($document->get('reindex')) { ?>