mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-24 20:17:13 +00:00
Fixed a bug in the WW renaming
You can no longer rename other WW or your village WW if you don't have one.
This commit is contained in:
@@ -10,7 +10,12 @@
|
|||||||
#################################################################################
|
#################################################################################
|
||||||
|
|
||||||
include("../Village.php");
|
include("../Village.php");
|
||||||
$database->submitWWname($_POST['vref'],$_POST['wwname']);
|
if(isset($_POST['wwname']) && !empty($_POST['wwname']) && $village->natar){
|
||||||
header("Location: ../../build.php?id=99&n");
|
$database->submitWWname($village->wid,$_POST['wwname']);
|
||||||
|
header("Location: ../../build.php?id=99&n");
|
||||||
|
}else{
|
||||||
|
header("Location: ../../dorf2.php");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
Reference in New Issue
Block a user