Fix strings

This commit is contained in:
danpros 2024-01-08 19:40:35 +07:00
commit 8fe8a5cc6e
3 changed files with 3 additions and 3 deletions

View file

@ -13,7 +13,7 @@
<th><?php echo i18n('Views');?></th>
<?php endif;?>
<th><?php echo i18n('Operations');?></th>
<th>Sub Pages</th>
<th>Subpages</th>
</tr>
<?php foreach ($posts as $p):?>
<?php $dd = find_subpage($p->md); ?>

View file

@ -68,7 +68,7 @@
<?php if (!empty($draftSubpages)):?>
<br><br>
<hr>
<h2 class="post-index"><?php echo i18n('Draft');?>: Sub</h2>
<h2 class="post-index"><?php echo i18n('Draft');?>: Subpages</h2>
<table class="table post-list">
<tr class="head">
<th><?php echo i18n('Title');?></th>

View file

@ -263,7 +263,7 @@ function rebuilt_cache($type = null)
$tmp = array();
$ctmp = array();
$tmp = glob('content/*/blog/*/*/*.md', GLOB_NOSORT);
if (is_array($tmp)) {
if (is_array($tmp)) {
foreach ($tmp as $file) {
if(strpos($file, '/draft/') === false) {
$posts_cache[] = pathinfo($file);