Skip to content

Commit

Permalink
War: Fix filename in url error and error in maps
Browse files Browse the repository at this point in the history
  • Loading branch information
blackcoder87 committed Jan 11, 2025
1 parent 52dc942 commit 6c173e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion application/modules/war/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Config extends Install
{
public $config = [
'key' => 'war',
'version' => '1.16.3',
'version' => '1.16.4',
'icon_small' => 'fa-solid fa-shield',
'author' => 'Stantin, Thomas',
'link' => 'https://ilch.de',
Expand Down
2 changes: 1 addition & 1 deletion application/modules/war/controllers/admin/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function treatAction()
if ($this->getRequest()->isPost()) {
$groupImage = $this->getRequest()->getPost('groupImage');
if (!empty($groupImage)) {
$groupImage = BASE_URL . '/' . $groupImage;
$groupImage = BASE_URL . '/' . urlencode($groupImage);
}

$post = [
Expand Down
4 changes: 2 additions & 2 deletions application/modules/war/views/admin/maps/treat.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
class="form-control"
id="mapsNameInput"
name="mapsName"
value="<?=$this->escape($this->originalInput('mapsName', ($entry->getId() ? $entrie->getName() : ''))) ?>" />
value="<?=$this->escape($this->originalInput('mapsName', ($entry->getId() ? $entry->getName() : ''))) ?>" />
</div>
</div>
<?=($entrie->getId()) ? $this->getSaveBar('updateButton') : $this->getSaveBar('addButton') ?>
<?=($entry->getId()) ? $this->getSaveBar('updateButton') : $this->getSaveBar('addButton') ?>
</form>

0 comments on commit 6c173e6

Please sign in to comment.