From 7c01920442164aa278952f683ef4c30fc31fba25 Mon Sep 17 00:00:00 2001 From: klarkxy <278370456@qq.com> Date: Thu, 1 May 2025 16:43:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/template/syzoj/category.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/template/syzoj/category.php b/web/template/syzoj/category.php index 4f20fd4..bd1672e 100644 --- a/web/template/syzoj/category.php +++ b/web/template/syzoj/category.php @@ -1,6 +1,7 @@ +

@@ -22,7 +23,7 @@ // 生成标签地图 // 为标签添加颜色样式 function colorize_tag($tag) { - global $color_theme; + $color_theme=Array("default","primary","success","info","warning","danger");; $hash_num = hexdec(substr(md5($tag), 0, 7)); $label_theme = $color_theme[$hash_num % count($color_theme)];