Changeset 194

Show
Ignore:
Timestamp:
03/28/07 21:07:49 (14 years ago)
Author:
ralle030583
Message:

- Bugfix: Active campaigns on home are now displayed even if they have an end date
- Missing link in battleoverview readded

Location:
dev/common
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • dev/common/includes/class.killboard.php

    r190 r194  
    3232                 where ctr_campaign = 1 
    3333                   and ctr_site = '".$this->site_."'"; 
    34         if ($active) $sql .= " and ctr_ended is null"; 
     34        if ($active) $sql .= " and ( ctr_ended is null or now() <= ctr_ended )"; 
    3535        $qry->execute($sql); 
    3636        return ($qry->recordCount() > 0); 
  • dev/common/kill_related.php

    r191 r194  
    420420$menubox->setIcon("menu-item.gif"); 
    421421$menubox->addOption("caption", "View"); 
     422$menubox->addOption("link", "Back to Killmail", "?a=kill_detail&kll_id=".$_GET['kll_id']); 
    422423$menubox->addOption("link", "Kills & losses", "?a=kill_related&kll_id=".$_GET['kll_id']); 
    423424$page->addContext($menubox->generate());