バグ修正 | |
■2007/09/06 | ph_/myph_〜AG902Wのカテゴリーテキスト表示の不具合 |
●エラー詳細 | ph_z(ip)shop_hal_ops(pro)_AG902W、my(pg)ph_z(ip)shop_hal_ops(pro)_AG902WのPC用frontpage.phpで変数のスペルミスによるバグが見つかりました。PCトップページのテキスト表示によるカテゴリー表示で、サブカテゴリーを設定していないカテゴリーが表示されません。 |
●修正 |
PC用frontpage.phpの300〜400行付近でカテゴリーのテキスト表示に関係する以下の部分を見つけてください。 }else{//テキスト表示 if($data[1]){//サブカテゴリーがある場合 $subwork=explode("=",$data[1]); $firstsubcat=$subwork[0]; $firstsubcat2=urlencode($subwork[0]); print <<<EOF <tr><td> <img src="{$img_dir}/sankaku.gif" align="absmiddle"> <a href="$goto?mode=subcategory&category;=$cat2&subcategory;=$firstsubcat2">{$cat}</a> </td></tr> EOF; }else{ print <<<EOF <tr><td> <img src="{$img_dir}/sankaku.gif" align="absmiddle"> <a href="$goto?mode=category&category;=$cat2">{$cate}</a> </td></tr> EOF; } } } 最後にあるEOF;の直前の行の{$cate}を{$cat}に修正します。(「cate」の「e」をとり「cat」とします。) -修正前- href="$goto?mode=category&category;=$cat2">{$cate}</a> </td></tr> EOF; -修正後- href="$goto?mode=category&category;=$cat2">{$cat}</a> </td></tr> EOF; 以上で修正は終わりです。 |