mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-05 20:34:21 +00:00
fix: immediate finish of all building progress redirects correctly
This commit is contained in:
@@ -765,7 +765,7 @@ class Building {
|
||||
return false;
|
||||
}
|
||||
|
||||
public function finishAll() {
|
||||
public function finishAll($redirect_url = '') {
|
||||
global $database,$session,$logging,$village,$bid18,$bid10,$bid11,$technology,$_SESSION;
|
||||
if($session->access!=BANNED){
|
||||
$finish = 0;
|
||||
@@ -832,13 +832,13 @@ class Building {
|
||||
}
|
||||
}
|
||||
}
|
||||
header("Location: ".$session->referrer);
|
||||
header("Location: ".($redirect_url ? $redirect_url : $session->referrer));
|
||||
exit;
|
||||
}else{
|
||||
header("Location: banned.php");
|
||||
exit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function resourceRequired($id,$tid,$plus=1) {
|
||||
$name = "bid".$tid;
|
||||
|
||||
Reference in New Issue
Block a user