OSDN Git Service

スマートフォンの場合も携帯と同じように表示するように修正。
authortakezoe <takezoe@users.osdn.me>
Sat, 23 Oct 2010 16:03:59 +0000 (16:03 +0000)
committertakezoe <takezoe@users.osdn.me>
Sat, 23 Oct 2010 16:03:59 +0000 (16:03 +0000)
wiki.cgi

index ea7c559..f6d8a84 100644 (file)
--- a/wiki.cgi
+++ b/wiki.cgi
@@ -135,9 +135,10 @@ eval {
        #==============================================================================
        my $output        = "";
        my $is_handyphone = &Util::handyphone();
+       my $is_smartphone = &Util::smartphone();
        my $template_name = "";
 
-       if ($is_handyphone) {
+       if ($is_handyphone || $is_smartphone) {
                $template_name = 'site_handyphone_tmpl';
        } else {
                $template_name = 'site_tmpl';
@@ -240,7 +241,7 @@ eval {
                IS_LOGIN => defined($login)
        );
 
-       if ($is_handyphone) {
+       if ($is_handyphone || $is_smartphone) {
                # ·ÈÂÓÅÅÏÃÍѽèÍý
                $output = $template->output;
                &Jcode::convert(\$output,"sjis");