OSDN Git Service

listplug_table_skinlist()とlistplug_table_adminskinlist()のスペシャルスキンパーツ分岐の条件を変更
authorsakamocchi <o-takashi@sakamocchi.jp>
Mon, 9 Apr 2012 16:13:16 +0000 (01:13 +0900)
committersakamocchi <o-takashi@sakamocchi.jp>
Mon, 9 Apr 2012 16:13:16 +0000 (01:13 +0900)
より妥当な条件に変更した

nucleus/libs/showlist.php

index a4484fe..8aa41f9 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 != strtolower($type) )\r
+                                       if ( !array_key_exists($type, $template['friendly_names']) || $type == strtolower($template['friendly_names'][$type]) )\r
                                        {\r
                                                $article = 'skinpartspecial';\r
                                        }\r