Browse Source

Fix sorting

pull/674/head
danpros 1 year ago
parent
commit
f28ac22a42
4 changed files with 2 additions and 5 deletions
  1. +0
    -1
      system/admin/views/add-content.html.php
  2. +0
    -1
      system/admin/views/categories.html.php
  3. +0
    -1
      system/admin/views/edit-content.html.php
  4. +2
    -2
      system/includes/functions.php

+ 0
- 1
system/admin/views/add-content.html.php View File

@ -9,7 +9,6 @@ if ($type != 'is_post' && $type != 'is_image' && $type != 'is_video' && $type !=
}
$desc = get_category_info(null);
asort($desc);
$tags = tag_cloud(true);
$tagslang = "content/data/tags.lang";


+ 0
- 1
system/admin/views/categories.html.php View File

@ -1,7 +1,6 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php
$desc = get_category_info(null);
asort($desc);
?>
<h2><?php echo i18n("Categories");?></h2>
<br>


+ 0
- 1
system/admin/views/edit-content.html.php View File

@ -9,7 +9,6 @@ if (isset($p->file)) {
$filename = $file_path['dirname'] . '/' . $file_path['basename'];
$desc = get_category_info(null);
asort($desc);
$content = file_get_contents($filename);
$oldtitle = get_content_tag('t', $content, 'Untitled');


+ 2
- 2
system/includes/functions.php View File

@ -865,8 +865,8 @@ function get_category_info($category = null)
$tmp = array();
$cslug= get_category_slug();
if (!empty($cslug)) {
asort($cslug);
if (is_null($category)) {
foreach ($cslug as $key => $c){
$ctmp = read_category_info($c);
@ -894,8 +894,8 @@ function get_category_info($category = null)
function read_category_info($category)
{
$cFiles = get_category_files();
$tmp = array();
$cFiles = get_category_files();
if (!empty($cFiles)) {
foreach ($cFiles as $index => $v) {
if (stripos($v['basename'], $category . '.md') !== false) {


Loading…
Cancel
Save