Permalink
Browse files

Merge pull request #50 from arambalakjian/3.1

Fixed Publish Check for non-versioned items
  • Loading branch information...
2 parents c3cceb0 + 743f403 commit f5c48c259c1e603129fa0e3add09b8a9f78103a8 Aram Balakjian committed Feb 25, 2014
Showing with 8 additions and 1 deletion.
  1. +8 −1 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 f5c48c2

Please sign in to comment.