fix: logging works, tech log link added to Admin

This commit is contained in:
Martin Ambrus
2017-11-07 10:34:50 +01:00
parent 6a332f292b
commit 8a7f12268c
15 changed files with 100 additions and 23 deletions
+10
View File
@@ -351,6 +351,16 @@ if (!empty($_GET['p'])) {
$subpage = 'Build Log (no village)';
}
break;
case 'techlog':
if (!empty($_GET['did'])) {
$village = $database->getVillage($_GET['did']);
$user = $database->getUserArray($village['owner'],1);
$subpage = 'Research Log ('.$village['name'].' » '.$user['username'].')';
} else {
$subpage = 'Research Log (no village)';
}
break;
}
}