MINOR Documentation

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@99110 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-02-16 03:32:48 +00:00 committed by Sam Minnee
parent d404a53569
commit 7e4586d744

View File

@ -91,6 +91,7 @@ class SilverStripeNavigatorItem_StageLink extends SilverStripeNavigatorItem {
static $priority = 20; static $priority = 20;
function getHTML($page) { function getHTML($page) {
// TODO cmsworkflow module coupling
if(Versioned::current_stage() == 'Stage' && !(ClassInfo::exists('SiteTreeFutureState') && SiteTreeFutureState::get_future_datetime())) { if(Versioned::current_stage() == 'Stage' && !(ClassInfo::exists('SiteTreeFutureState') && SiteTreeFutureState::get_future_datetime())) {
return "<a class=\"current\">". _t('ContentController.DRAFTSITE', 'Draft Site') ."</a>"; return "<a class=\"current\">". _t('ContentController.DRAFTSITE', 'Draft Site') ."</a>";
} else { } else {