From 5e4521e62e9d6c81d2406ae9ab1dfe50b09f592b Mon Sep 17 00:00:00 2001 From: Martin Ambrus Date: Fri, 3 Nov 2017 17:15:16 +0100 Subject: [PATCH] fix: misspelled session variable --- Templates/Build/23.tpl | 2 +- Templates/a2b/attack_5.tpl | 4 ++-- Templates/a2b/newdorf.tpl | 2 +- Templates/a2b/startRaid.tpl | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Templates/Build/23.tpl b/Templates/Build/23.tpl index ccf6c253..950d25d7 100644 --- a/Templates/Build/23.tpl +++ b/Templates/Build/23.tpl @@ -13,7 +13,7 @@ include("next.tpl"); $artefact_bouns = 1; } $good_effect = $bad_effect = 1; - $foolartefact = $database->getFoolArtefactInfo(7,$village->wid,$seesion->uid); + $foolartefact = $database->getFoolArtefactInfo(7,$village->wid,$session->uid); if(count($foolartefact) > 0){ foreach($foolartefact as $arte){ if($arte['bad_effect'] == 1){ diff --git a/Templates/a2b/attack_5.tpl b/Templates/a2b/attack_5.tpl index e725e589..d092a4cf 100644 --- a/Templates/a2b/attack_5.tpl +++ b/Templates/a2b/attack_5.tpl @@ -23,7 +23,7 @@ $to = array('x'=>$coor['x'], 'y'=>$coor['y']); $fastertroops = 1; } $time = round($generator->procDistanceTime($from,$to,300,0)/$fastertroops); -$foolartefact = $database->getFoolArtefactInfo(2,$village->wid,$seesion->uid); +$foolartefact = $database->getFoolArtefactInfo(2,$village->wid,$session->uid); if(count($foolartefact) > 0){ foreach($foolartefact as $arte){ if($arte['bad_effect'] == 1){ @@ -398,7 +398,7 @@ $actionType = "Raid"; $fastertroops = 1; } $time = round($generator->procDistanceTime($from,$to,min($speeds),1)/$fastertroops); - $foolartefact = $database->getFoolArtefactInfo(2,$village->wid,$seesion->uid); + $foolartefact = $database->getFoolArtefactInfo(2,$village->wid,$session->uid); if(count($foolartefact) > 0){ foreach($foolartefact as $arte){ if($arte['bad_effect'] == 1){ diff --git a/Templates/a2b/newdorf.tpl b/Templates/a2b/newdorf.tpl index cf7beb9a..0d75ce77 100644 --- a/Templates/a2b/newdorf.tpl +++ b/Templates/a2b/newdorf.tpl @@ -21,7 +21,7 @@ $to = array('x'=>$newvillage['x'], 'y'=>$newvillage['y']); $fastertroops = 1; } $time = round($generator->procDistanceTime($from,$to,300,0)/$fastertroops); -$foolartefact = $database->getFoolArtefactInfo(2,$village->wid,$seesion->uid); +$foolartefact = $database->getFoolArtefactInfo(2,$village->wid,$session->uid); if(count($foolartefact) > 0){ foreach($foolartefact as $arte){ if($arte['bad_effect'] == 1){ diff --git a/Templates/a2b/startRaid.tpl b/Templates/a2b/startRaid.tpl index ed109835..f63bf49c 100644 --- a/Templates/a2b/startRaid.tpl +++ b/Templates/a2b/startRaid.tpl @@ -60,7 +60,7 @@ $fastertroops = 1; } $time = round($generator->procDistanceTime($from,$to,min($speeds),1)/$fastertroops); - $foolartefact = $database->getFoolArtefactInfo(2,$village->wid,$seesion->uid); + $foolartefact = $database->getFoolArtefactInfo(2,$village->wid,$session->uid); if(count($foolartefact) > 0){ foreach($foolartefact as $arte){ if($arte['bad_effect'] == 1){