properly fix the team naming/sorting issue

This commit is contained in:
james 2008-09-16 19:38:27 +00:00
parent bed8cc9d9e
commit 4d0ff8f327

View File

@ -605,18 +605,26 @@ for($x=1;$x<count($jteam); $x++) {
print("langs=($langstr)");
print("cats=(");
$catstr="";
for($y=0; $y<count($t['cats']); $y++) {
print("c".$t['cats'][$y]. " ");
if($y!=0) $catstr .= "+";
$catstr .= $cat[$t['cats'][$y]];
}
if(count($t['cats'])) {
$first=true;
foreach($t['cats'] AS $cid) {
print("c".$cid." ");
if(!$first) $catstr .= "+";
$catstr .= $cat[$cid];
$first=false;
}
}
print(")");
print("divs=(");
$divstr="";
for($y=0; $y<count($t['divs']); $y++) {
print("d".$t['divs'][$y]. " ");
if($y!=0) $divstr.="/";
$divstr .= $div[$t['divs'][$y]];
if(count($t['divs'])) {
$first=true;
foreach($t['divs'] AS $did) {
print("d".$did." ");
if(!$first) $divstr.="/";
$divstr .= $div[$did];
$first=false;
}
}
print(")\n");