From 5b7099e0e530c57d700ed4133b8f3047acf64a74 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sun, 4 Sep 2016 17:21:25 +0200 Subject: [PATCH] Show tag kind in tag management screen. --- controllers/ManageTags.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/controllers/ManageTags.php b/controllers/ManageTags.php index b191a23..c62f83e 100644 --- a/controllers/ManageTags.php +++ b/controllers/ManageTags.php @@ -40,6 +40,11 @@ class ManageTags extends HTMLController 'data' => 'slug', ], ], + 'kind' => [ + 'header' => 'Kind', + 'is_sortable' => true, + 'value' => 'kind', + ], 'count' => [ 'header' => 'Cardinality', 'is_sortable' => true, @@ -54,7 +59,7 @@ class ManageTags extends HTMLController 'items_per_page' => 25, 'base_url' => BASEURL . '/managetags/', 'get_data' => function($offset = 0, $limit = 15, $order = '', $direction = 'up') { - if (!in_array($order, ['id_post', 'tag', 'slug', 'count'])) + if (!in_array($order, ['id_post', 'tag', 'slug', 'kind', 'count'])) $order = 'tag'; if (!in_array($direction, ['up', 'down'])) $direction = 'up';