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> <th><?php echo i18n('Views');?></th>
<?php endif;?> <?php endif;?>
<th><?php echo i18n('Operations');?></th> <th><?php echo i18n('Operations');?></th>
<th>Sub Pages</th> <th>Subpages</th>
</tr> </tr>
<?php foreach ($posts as $p):?> <?php foreach ($posts as $p):?>
<?php $dd = find_subpage($p->md); ?> <?php $dd = find_subpage($p->md); ?>

View file

@ -68,7 +68,7 @@
<?php if (!empty($draftSubpages)):?> <?php if (!empty($draftSubpages)):?>
<br><br> <br><br>
<hr> <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"> <table class="table post-list">
<tr class="head"> <tr class="head">
<th><?php echo i18n('Title');?></th> <th><?php echo i18n('Title');?></th>

View file

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