summaryrefslogtreecommitdiff
path: root/demos/blog/protected/Pages/Posts/ViewPost.php
diff options
context:
space:
mode:
authorxue <>2006-05-30 11:03:26 +0000
committerxue <>2006-05-30 11:03:26 +0000
commita21589b8e1292e2ba8b2a09e20d1bd0c4e2216b6 (patch)
tree6e6a1e43be479c9e00639ce2a56726efd880018d /demos/blog/protected/Pages/Posts/ViewPost.php
parentf46b4732604b50c1ea20ac92e49fad3281ec1891 (diff)
Fixed a bug in deleting a post.
Diffstat (limited to 'demos/blog/protected/Pages/Posts/ViewPost.php')
-rw-r--r--demos/blog/protected/Pages/Posts/ViewPost.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/blog/protected/Pages/Posts/ViewPost.php b/demos/blog/protected/Pages/Posts/ViewPost.php
index 84f33cff..8d0a7124 100644
--- a/demos/blog/protected/Pages/Posts/ViewPost.php
+++ b/demos/blog/protected/Pages/Posts/ViewPost.php
@@ -75,7 +75,7 @@ class ViewPost extends BlogPage
public function deleteButtonClicked($sender,$param)
{
- $this->DataAccess->deletePost($this->PostID);
+ $this->DataAccess->deletePost($this->CurrentPost->ID);
$this->gotoDefaultPage();
}