Skip to content

Commit

Permalink
[tag_categories] more consistent naming
Browse files Browse the repository at this point in the history
  • Loading branch information
shish committed Dec 13, 2024
1 parent d4d09dc commit 84692b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ext/common_elements/theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ public function build_tag(string $tag, bool $show_underscores = true, bool $show
$body = $tag;

if (Extension::is_enabled(TagCategoriesInfo::KEY)) {
$category = TagCategories::getTagCategory($tag);
$category = TagCategories::get_tag_category($tag);
if (!is_null($category)) {
$tag_category_dict = TagCategories::getKeyedDict();
$props["class"] = "tag tag_category_$category";
$props["style"] = "color:".$tag_category_dict[$category]['color'].";";

if ($show_category === false) {
$body = TagCategories::getTagBody($tag);
$body = TagCategories::get_tag_body($tag);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions ext/tag_categories/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public static function getKeyedDict(): array
return $tc_keyed_dict;
}

public static function getTagCategory(string $tag): ?string
public static function get_tag_category(string $tag): ?string
{
$tag_category_dict = static::getKeyedDict();
$tag_split = explode(':', $tag, 2);
Expand All @@ -141,7 +141,7 @@ public static function getTagCategory(string $tag): ?string
return null;
}

public static function getTagBody(string $tag): string
public static function get_tag_body(string $tag): string
{
$tag_category_dict = static::getKeyedDict();
$tag_split = explode(':', $tag, 2);
Expand Down

0 comments on commit 84692b9

Please sign in to comment.