added Sizaro's Swedish translation and some fixes

https://otland.net/threads/myaac-v0-0-1.251454/page-6#post-2443743
This commit is contained in:
slawkens1
2017-05-21 22:12:14 +02:00
parent 915a1720e2
commit be6fd3af0e
6 changed files with 124 additions and 3 deletions

View File

@@ -262,7 +262,7 @@ if($player->isLoaded() && !$player->isDeleted())
<TD>House:</TD>
<TD>
<TABLE BORDER=0><TR>
<TD>' . (isset($house['name']) ? $house['name'] : $house['id']) . (isset($house['town']) ? ' (' . $config['towns'][$house[$town_field]] . ')' : '') . $add . '</TD>
<TD>' . (isset($house['name']) ? $house['name'] : $house['id']) . (isset($house['town']) ? ' (' . $config['towns'][$house['town']] . ')' : '') . $add . '</TD>
<TD>
<FORM ACTION="?subtopic=houses&page=view" METHOD=post>
<INPUT TYPE=hidden NAME=house VALUE="'. (isset($house['name']) ? $house['name'] : $house['id']) . '">

View File

@@ -68,15 +68,18 @@ $type = '';
$houseOwner = $house['owner'];
if($houseOwner > 0)
{
$guild = NULL;
echo '<br/><br/>The house has been rented by ';
if($house['guild'] == 1)
if(isset($house['guild']) && $house['guild'] == 1)
{
$guild = new OTS_Guild();
$guild->load($houseOwner);
echo getGuildLink($guild->getName());
}
else
echo getCreatureName($houseOwner) . '.';
echo getCreatureName($houseOwner);
echo '.';
if($rent != 'never' && $house['paid'] > 0)
{