diff --git a/ext/tag_categories/config.php b/ext/tag_categories/config.php new file mode 100644 index 00000000..ee6b6637 --- /dev/null +++ b/ext/tag_categories/config.php @@ -0,0 +1,8 @@ +set_default_bool("tag_categories_split_on_view", true); + $config->set_default_bool(TagCategoriesConfig::SPLIT_ON_VIEW, true); - if ($config->get_int("ext_tag_categories_version") < 1) { + if ($config->get_int(TagCategoriesConfig::VERSION) < 1) { // primary extension database, holds all our stuff! $database->create_table( 'image_tag_categories', @@ -26,7 +28,7 @@ class TagCategories extends Extension color VARCHAR(7)' ); - $config->set_int("ext_tag_categories_version", 1); + $config->set_int(TagCategoriesConfig::VERSION, 1); log_info("tag_categories", "extension installed"); } diff --git a/ext/tag_list/main.php b/ext/tag_list/main.php index ac5484a8..ec2a4032 100644 --- a/ext/tag_list/main.php +++ b/ext/tag_list/main.php @@ -100,7 +100,7 @@ class TagList extends Extension if ($config->get_string('tag_list_image_type') == 'related') { $this->add_related_block($page, $event->image); } else { - if (class_exists("TagCategories") and $config->get_bool('tag_categories_split_on_view')) { + if (class_exists("TagCategories") and $config->get_bool(TagCategoriesConfig::SPLIT_ON_VIEW)) { $this->add_split_tags_block($page, $event->image); } else { $this->add_tags_block($page, $event->image);