Browse Source

Update functions.php

pull/674/head
danpros 1 year ago
parent
commit
85f8abf537
1 changed files with 12 additions and 1 deletions
  1. +12
    -1
      system/includes/functions.php

+ 12
- 1
system/includes/functions.php View File

@ -875,6 +875,8 @@ function get_category_info($category = null)
} }
} }
} }
} else {
$tmp[] = default_category($category);
} }
return $tmp; return $tmp;
} }
@ -929,7 +931,16 @@ function default_category($category = null)
$tmp = array(); $tmp = array();
$desc = new stdClass; $desc = new stdClass;
if ($category == 'uncategorized') {
if (is_null($category)) {
$desc->title = i18n("Uncategorized");
$desc->url = site_url() . 'category/uncategorized';
$desc->slug = 'uncategorized';
$desc->body = '<p>' . i18n('Uncategorized_comment') . '</p>';
$desc->md = 'uncategorized.md';
$desc->description = i18n('Uncategorized_comment');
$desc->file = '';
$desc->count = get_categorycount($desc->slug);
} elseif ($category == 'uncategorized') {
$desc->title = i18n("Uncategorized"); $desc->title = i18n("Uncategorized");
$desc->url = site_url() . 'category/uncategorized'; $desc->url = site_url() . 'category/uncategorized';
$desc->slug = 'uncategorized'; $desc->slug = 'uncategorized';


Loading…
Cancel
Save