diff options
author | xue <> | 2006-05-31 00:33:26 +0000 |
---|---|---|
committer | xue <> | 2006-05-31 00:33:26 +0000 |
commit | e3b10414305b181aa4e39e211cf6b0e9bf992518 (patch) | |
tree | 780cf0f0eab6ca0a216a3cdbc960ac4585eaf922 /demos/blog/protected/Pages/Posts/EditPost.php | |
parent | ac746689f6ba6efc4e8fac69d19e4daa7393d7fb (diff) |
Added sticky feature for published posts.
Diffstat (limited to 'demos/blog/protected/Pages/Posts/EditPost.php')
-rw-r--r-- | demos/blog/protected/Pages/Posts/EditPost.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/blog/protected/Pages/Posts/EditPost.php b/demos/blog/protected/Pages/Posts/EditPost.php index 24b58529..2638293d 100644 --- a/demos/blog/protected/Pages/Posts/EditPost.php +++ b/demos/blog/protected/Pages/Posts/EditPost.php @@ -41,7 +41,7 @@ class EditPost extends BlogPage $postRecord=$this->_postRecord;
$this->Title->Text=$postRecord->Title;
$this->Content->Text=$postRecord->Content;
- $this->DraftMode->Checked=$postRecord->Status!==PostRecord::STATUS_PUBLISHED;
+ $this->DraftMode->Checked=$postRecord->Status===PostRecord::STATUS_DRAFT;
$this->Categories->DataSource=$this->DataAccess->queryCategories();
$this->Categories->dataBind();
$cats=$this->DataAccess->queryCategoriesByPostID($postRecord->ID);
|