OSDN Git Service

バグの修正。$friendly_namesの配列からスペシャルスキンパーツを判定する条件を変更。
authorsakamocchi <o-takashi@sakamocchi.jp>
Sun, 8 Apr 2012 23:16:47 +0000 (08:16 +0900)
committersakamocchi <o-takashi@sakamocchi.jp>
Sun, 8 Apr 2012 23:16:47 +0000 (08:16 +0900)
$friendly_nameの配列はスペシャルスキンパーツではない場合、バリューを小文字で再構成したキーを持つ。スペシャルスキンパーツを判定するには、バリューを小文字にしてキーと比較する必要がある。

nucleus/libs/showlist.php

index 92af16d..a4484fe 100644 (file)
@@ -1561,7 +1561,7 @@ function listplug_table_skinlist($vars, $type, $templateName = '')
                                for ( $i = 0; $i < sizeof($types); $i++ )\r
                                {\r
                                        $type = $types[$i];\r
-                                       if ( $i != $types[$i] )\r
+                                       if ( $i != strtolower($type) )\r
                                        {\r
                                                $article = 'skinpartspecial';\r
                                        }\r