From eb041f5cd93294057a19bbf514cc57fc182fc853 Mon Sep 17 00:00:00 2001 From: iopietro Date: Fri, 6 Apr 2018 19:53:41 +0200 Subject: [PATCH] Fixed a bug in the rally point The name of the attacked oasis and the link connected to it, are now shown correctly. --- Templates/Build/16_incomming.tpl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Templates/Build/16_incomming.tpl b/Templates/Build/16_incomming.tpl index 706d1f51..c0d981b5 100644 --- a/Templates/Build/16_incomming.tpl +++ b/Templates/Build/16_incomming.tpl @@ -82,7 +82,7 @@ if ($units[$y]['sort_type']==3){ '.ARRIVAL.' - +
'.$generator->getTimeFormat($units[$y]['endtime']-time()).' h
'; $datetime = $generator->procMtime($units[$y]['endtime']); echo "
"; @@ -230,6 +230,7 @@ $oasis = $database->getMovement("6",$conqured['wref'],0); $total_for = count($oasis); for($y=0;$y < $total_for;$y++){ $timer = $y+1; +$to = $database->getOMInfo($oasis[$y]['to']); if ($oasis[$y]['attack_type']==2){ $actionType = REINFORCEMENTFOR; } else if ($oasis[$y]['attack_type']==3){ @@ -246,9 +247,9 @@ $timer = $y+1; echo ""; - $tribe = $database->getUserField($database->getVillageField($oasis[$y]['from'],"owner"),"tribe",0); + $tribe = $database->getUserField($reinfowner,"tribe",0); $start = ($tribe-1)*10+1; $end = ($tribe*10); echo "";
getMapCheck($oasis[$y]['from'])."\">".$database->getVillageField($oasis[$y]['from'],"name")." "; - echo "getVillageField($oasis[$y]['from'],"owner")."\">".$database->getUserField($database->getVillageField($oasis[$y]['from'],"owner"),"username",0)."'s troopslll"; + echo "getMapCheck($oasis[$y]['to'])."\">".$actionType." ".$to['name'].""; echo "