|
@@ -294,11 +294,14 @@
|
|
|
<button type="submit" class="btn btn-important"><?= _t('gen.action.submit') ?></button>
|
|
<button type="submit" class="btn btn-important"><?= _t('gen.action.submit') ?></button>
|
|
|
<button type="reset" class="btn"><?= _t('gen.action.cancel') ?></button>
|
|
<button type="reset" class="btn"><?= _t('gen.action.cancel') ?></button>
|
|
|
<?php
|
|
<?php
|
|
|
- if ($from === '') {
|
|
|
|
|
- $url = _url('feed', 'delete', 'id', $this->feed->id());
|
|
|
|
|
- } else {
|
|
|
|
|
- $url = _url('feed', 'delete', 'id', $this->feed->id(), 'from', $from);
|
|
|
|
|
|
|
+ $deleteParams = ['id', $this->feed->id()];
|
|
|
|
|
+ if ($from !== '') {
|
|
|
|
|
+ array_push($deleteParams, 'from', $from);
|
|
|
}
|
|
}
|
|
|
|
|
+ if (Minz_Request::paramBoolean('error')) {
|
|
|
|
|
+ array_push($deleteParams, 'error', 1);
|
|
|
|
|
+ }
|
|
|
|
|
+ $url = _url('feed', 'delete', ...$deleteParams);
|
|
|
?>
|
|
?>
|
|
|
<button type="submit" class="btn btn-attention confirm"
|
|
<button type="submit" class="btn btn-attention confirm"
|
|
|
data-str-confirm="<?= _t('gen.js.confirm_action_feed_cat') ?>"
|
|
data-str-confirm="<?= _t('gen.js.confirm_action_feed_cat') ?>"
|