diff options
Diffstat (limited to 'app/view/templates/confirmdelete.php')
-rw-r--r-- | app/view/templates/confirmdelete.php | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/app/view/templates/confirmdelete.php b/app/view/templates/confirmdelete.php index 7d8f62a..133f32b 100644 --- a/app/view/templates/confirmdelete.php +++ b/app/view/templates/confirmdelete.php @@ -4,26 +4,25 @@ <?php $this->start('page') ?> -<?php $this->insert('navart', ['user' => $user, 'art' => $art, 'artexist' => $artexist]) ?> <div> <h1>Delete</h1> <ul> -<li>Id : <?= $art->id() ?></li> -<li>Title : <?= $art->title() ?></li> -<li>Article(s) linked to this one : <?= $art->linkto('sort') ?></li> -<li>Article(s) linked from this one : <?= $art->linkfrom('sort') ?></li> -<li>Number of edits : <?= $art->editcount() ?></li> +<li>Id : <?= $page->id() ?></li> +<li>Title : <?= $page->title() ?></li> +<li>Article(s) linked to this one : <?= $page->linkto('sort') ?></li> +<li>Article(s) linked from this one : <?= $page->linkfrom('sort') ?></li> +<li>Number of edits : <?= $page->editcount() ?></li> </ul> -<?php if (!empty($art->linkto())) { ?> +<?php if (!empty($page->linkto())) { ?> <h2>Article linked to :</h2> <ul> -<?php foreach ($art->linkto('array') as $linkto) { +<?php foreach ($page->linkto('array') as $linkto) { echo '<li><a href="./?id=' . $linkto . '">' . $linkto . '</a></li>'; } ?> </ul> @@ -34,7 +33,7 @@ </div> -<form action="<?= $this->uart('artdelete', $art->id()) ?>" method="post"> +<form action="<?= $this->upage('pagedelete', $page->id()) ?>" method="post"> <input type="hidden" name="deleteconfirm" value="true"> <input type="submit" value="confirm delete"> </form> |