From 671d7a4ddd2df52980836eed7b1c8ee15d0f09fa Mon Sep 17 00:00:00 2001 From: Juribiyan Date: Tue, 2 Jun 2020 22:24:32 +0500 Subject: [PATCH] Faster getpreferredstylesheet with custom style support and no dependencies --- dwoo/templates/board_header.tpl | 2 +- getpreferredstylesheet.php | 31 +++++++++++++++++++------------ 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/dwoo/templates/board_header.tpl b/dwoo/templates/board_header.tpl index 2a60dfb..5a0779d 100644 --- a/dwoo/templates/board_header.tpl +++ b/dwoo/templates/board_header.tpl @@ -29,7 +29,7 @@ title="{$|capitalize}" {if $__.customstyle eq $}data-custom="true"{/if}/> {/loop}{/strip}') - + {if $locale eq 'ja'} {literal} diff --git a/getpreferredstylesheet.php b/getpreferredstylesheet.php index e21928b..531e570 100644 --- a/getpreferredstylesheet.php +++ b/getpreferredstylesheet.php @@ -1,15 +1,22 @@ \ No newline at end of file