From 0864771ac37fe4c82a180e179c504a4143580f31 Mon Sep 17 00:00:00 2001 From: Eltrac Koalar Date: Tue, 5 May 2020 19:23:03 +0800 Subject: =?UTF-8?q?:zap:=20Perf:=20=E5=B0=86=20kbd=20=E7=9A=84=E7=9F=AD?= =?UTF-8?q?=E4=BB=A3=E5=90=97=E4=BF=AE=E6=94=B9=E4=B8=BA=20[[kbd]]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/Contents.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libs/Contents.php') diff --git a/libs/Contents.php b/libs/Contents.php index 2d27671..e949543 100644 --- a/libs/Contents.php +++ b/libs/Contents.php @@ -8,7 +8,7 @@ class Contents */ static public function parseContent($data, $widget, $last) { - $db=Typecho_Db::get(); + $db=Typecho_Db::get(); $load_image = $db->fetchAll($db->select('value')->from('table.options')->where('name = %s', "theme:Miracles")->limit(1)); $load_image = explode("\";",explode("\"",explode("\"loading_image\";",$load_image[0]["value"],2)[1],2)[1],2)[0]; $text = empty($last) ? $data : $last; @@ -208,7 +208,7 @@ class Contents * 解析键盘按键 */ static public function parseKbd($text) { - $text = preg_replace('/\~(.*?)\~/s','${1}',$text); + $text = preg_replace('/\[\[(.*?)\]\]/s','${1}',$text); return $text; } @@ -308,4 +308,4 @@ class Contents ), '', ' - '); Helper::options()->title(); } -} \ No newline at end of file +} -- cgit v1.2.3