Skip to content
Browse files

Fixed Publish Check for non-versioned items

  • Loading branch information...
1 parent 782f125 commit 743f4036c384b957865d752d854abc9abf4fa81b @arambalakjian committed Feb 25, 2014
Showing with 8 additions and 1 deletion.
  1. +8 −1 code/DataObjects/DataObjectAsPage.php
View
9 code/DataObjects/DataObjectAsPage.php
@@ -309,7 +309,14 @@ public function MetaTags($includeTitle = true)
public function getStatus()
{
- return $this->isPublished() ? "Published" : "Draft";
+ if($this->isVersioned)
+ {
+ return $this->isPublished() ? "Published" : "Draft";
+ }
+ else
+ {
+ return "Published (Staging disabled)";
+ }
}
/**

0 comments on commit 743f403

Please sign in to comment.
Something went wrong with that request. Please try again.