Skip to content

Commit 8f1be69

Browse files
committed
Delete file delete.php
1 parent 18a59ec commit 8f1be69

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

admin/delete.php

Lines changed: 0 additions & 2 deletions
This file was deleted.

views/admin/dashboard.view.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
$article = $cursor->getNext();?>
1616
<tr>
1717
<td><?php echo substr($article['title'], 0, 35) . '...'; ?></td>
18-
<td><?php print date('g:i a, F j', $article['saved_at']->sec);?></td>
18+
<td><?php print date('M d/Y H:i', $article['saved_at']->sec);?></td>
1919
<td width="9%">
2020
<a href="../single.php?id=<?php echo $article['_id'];?>">View</a>
2121
</td>
@@ -51,7 +51,7 @@ function confirmDelete(articleId) {
5151
var deleteArticle = confirm('Are you sure you want to delete this article?');
5252

5353
if(deleteArticle){
54-
window.location.href = 'delete.php?id='+articleId;
54+
window.location.href = 'index.php?status=delete&id='+articleId;
5555
}
5656
return;
5757
}

0 commit comments

Comments
 (0)