Show
Ignore:
Timestamp:
09/25/07 15:26:51 (15 years ago)
Author:
ralle030583
Message:

Implemented exi's involvedloader class

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/system_detail.php

    r233 r240  
    2323 
    2424$kslist = new KillList(); 
    25 if (CORP_ID) 
    26     $kslist->addInvolvedCorp(new Corporation(CORP_ID)); 
    27 if (ALLIANCE_ID) 
    28     $kslist->addInvolvedAlliance(new Alliance(ALLIANCE_ID)); 
     25involved::load($kslist,'kill'); 
    2926$kslist->addSystem($system); 
    3027 
    3128$lslist = new KillList(); 
    32 if (CORP_ID) 
    33     $lslist->addVictimCorp(new Corporation(CORP_ID)); 
    34 if (ALLIANCE_ID) 
    35     $lslist->addVictimAlliance(new Alliance(ALLIANCE_ID)); 
     29involved::load($lslist,'loss'); 
    3630$lslist->addSystem($system); 
    3731 
     
    4438if ($_GET['view'] == 'losses') 
    4539{ 
    46     if (CORP_ID) 
    47         $klist->addVictimCorp(new Corporation(CORP_ID)); 
    48     if (ALLIANCE_ID) 
    49         $klist->addVictimAlliance(new Alliance(ALLIANCE_ID)); 
     40        involved::load($klist,'loss'); 
    5041} 
    5142else 
    5243{ 
    53     if (CORP_ID) 
    54         $klist->addInvolvedCorp(new Corporation(CORP_ID)); 
    55     if (ALLIANCE_ID) 
    56         $klist->addInvolvedAlliance(new Alliance(ALLIANCE_ID)); 
     44   involved::load($klist,'kill'); 
    5745} 
    5846$klist->addSystem($system);