From ffe6b77a9396c699afae91996baad69568a5be1a Mon Sep 17 00:00:00 2001 From: Eltrac Date: Mon, 17 Nov 2025 08:29:52 +0800 Subject: fix: PostgreSQL compatibility issue #50 --- libs/Matcha.php | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/libs/Matcha.php b/libs/Matcha.php index 85d712b..b541d27 100644 --- a/libs/Matcha.php +++ b/libs/Matcha.php @@ -51,12 +51,12 @@ class Matcha foreach($src_link as $value){ echo ''; } - + $local_includes=array();//没有额外的本地文件 }else{ //要引入的 css 文件名 $local_includes=array( - "normalize", + "normalize", "bigfoot/bigfoot", "prism/prism", "jquery/jquery.fluidbox.min", @@ -73,7 +73,7 @@ class Matcha } else { //自定义 CDN $includes=array( - "normalize", + "normalize", "bigfoot/bigfoot", "prism/prism", "jquery/jquery.fluidbox.min", @@ -87,7 +87,7 @@ class Matcha } } } - + /** * 输出 preconnect 标签 */ @@ -109,10 +109,10 @@ class Matcha foreach($src_link as $value){ echo ''; } - + } } - + /** * 引用 iconfont */ @@ -120,7 +120,7 @@ class Matcha echo ""; @@ -183,7 +183,7 @@ class Matcha foreach($src_link as $value){ echo ''; } - + $local_includes=array();//没有额外的本地文件 }else{ //要引入的 js 文件名 @@ -238,7 +238,7 @@ class Matcha /** * 输出完备的标题 */ - public static function title(Widget_Archive $archive) + public static function title(Widget_Archive $archive) { $archive->archiveTitle(array( 'category' => '%s', @@ -253,7 +253,7 @@ class Matcha * 统一输出页面导航 * html 结构 */ - public static function pageNav(Widget_Archive $archive, $tag) + public static function pageNav(Widget_Archive $archive, $tag) { $data = json_decode(Helper::options()->customNav, true); @@ -267,11 +267,11 @@ class Matcha //页面列表 while($pages->next()) { echo '<'.$tag.'>'; - $pages->title(); + $pages->title(); echo ''; } } @@ -294,11 +294,11 @@ class Matcha $archive->widget('Widget_Metas_Category_List')->to($categories); while($categories->next()) { echo '<'.$tag.'>'; - $categories->name(); + $categories->name(); echo ''; } } @@ -308,7 +308,7 @@ class Matcha * 统一输出站点标题及副标题 * html 结构 */ - public static function siteName() + public static function siteName() { echo '