Browse Source

Fix strings

pull/674/head
danpros 1 year ago
parent
commit
8fe8a5cc6e
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      system/admin/views/static-pages.html.php
  2. +1
    -1
      system/admin/views/user-draft.html.php
  3. +1
    -1
      system/includes/functions.php

+ 1
- 1
system/admin/views/static-pages.html.php 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); ?>


+ 1
- 1
system/admin/views/user-draft.html.php 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>


+ 1
- 1
system/includes/functions.php 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);


Loading…
Cancel
Save