diff options
Diffstat (limited to 'libs/Contents.php')
| -rw-r--r-- | libs/Contents.php | 6 |
1 files changed, 3 insertions, 3 deletions
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','<kbd>${1}</kbd>',$text); + $text = preg_replace('/\[\[(.*?)\]\]/s','<kbd>${1}</kbd>',$text); return $text; } @@ -308,4 +308,4 @@ class Contents ), '', ' - '); Helper::options()->title(); } -}
\ No newline at end of file +} |
