Après édition de page retour à la page et non à l'accueil

This commit is contained in:
Fred Tempez 2023-08-30 10:28:20 +02:00
parent 5768638a2e
commit 047f107f66

View File

@ -1,13 +1,10 @@
<?php echo template::formOpen('pageEditForm'); ?>
<div class="row">
<div class="col1">
<?php $href = helper::baseUrl() . $this->getUrl(2); ?>
<?php if ($this->getData(['page', $this->getUrl(2), 'moduleId']) === 'redirection' || 'code')
$href = helper::baseUrl(); ?>
<?php echo template::button('pageEditBack', [
<?php echo template::button('configModulesBack', [
'class' => 'buttonGrey',
'href' => $href,
'value' => template::ico('home')
'href' => helper::baseUrl() . $this->getUrl(2),
'value' => template::ico('left')
]); ?>
</div>
<div class="col1">