fix tests

This commit is contained in:
Dennis Eichhorn 2022-10-08 21:34:59 +02:00
parent f105a4e25f
commit 9c7c3f6cf4
3 changed files with 6 additions and 5 deletions

View File

@ -18,10 +18,10 @@ use phpOMS\Uri\UriFactory;
<section id="mediaFile" class="portlet">
<div class="portlet-body">
<div class="h-overflow centerText">
<img style="max-width: 100%" src="<?= $this->media->getId() !== 0
<img alt="<?= $this->printHtml($this->media->name); ?>" style="max-width: 100%" src="<?= $this->media->getId() !== 0
? UriFactory::build('{/api}media/export?id=' . $this->media->getId())
: UriFactory::build('{/api}media/export?path=' . \urlencode($this->media->getPath()));
?>" alt="<?= $this->printHtml($this->media->name); ?>">
?>">
</div>
</div>
</section>

View File

@ -61,7 +61,7 @@ use phpOMS\Uri\UriFactory;
</table>
</div>
<div class="portlet-foot">
<input type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>">
<input type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>" name="save-media-file">
</div>
</form>
</div>
@ -71,7 +71,7 @@ use phpOMS\Uri\UriFactory;
<form>
<table class="layout">
<tr><td colspan="2"><label><?= $this->getHtml('Permission'); ?></label>
<tr><td><select>
<tr><td><select name="permission">
<option>
</select>
<tr><td colspan="2"><label><?= $this->getHtml('GroupUser'); ?></label>

View File

@ -1,4 +1,5 @@
<?php declare(strict_types=1);
<?php
declare(strict_types=1);
// Modules/tests