Skip to content

Commit

Permalink
Поправлен вывод категорий в виде хештегов
Browse files Browse the repository at this point in the history
  • Loading branch information
Gokujo committed Jul 4, 2022
1 parent 48c7c08 commit bc0c873
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "1.7.2",
"version": "1.7.2.1",
"name": "TelegramPosting"
}
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ public function parse_content($content, array $filter = [])
} else $content = str_replace('{category-url}', "#", $content);

$cat_hashtags = [];
foreach($my_cat as $c) $cat_hashtags[] = '#' . str_replace(' ', '_', $c);
foreach($cat_list as $c) $cat_hashtags[] = '#' . str_replace(' ', '_', $cat_info[$c]['name']);

$content = str_replace('{comments-num}', number_format($row['comm_num'], 0, ',', ' '), $content);
$content = str_replace('{views}', number_format($row['news_read'], 0, ',', ' '), $content);
Expand Down

0 comments on commit bc0c873

Please sign in to comment.