BUGFIX: fix incorrect link in CMS (from r97408)

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

View File

@ -23,6 +23,13 @@ class SilverStripeNavigatorItem_CMSLink extends SilverStripeNavigatorItem {
return $cmsLink;
}
}
function getLink($page) {
if(is_a(Controller::curr(), 'CMSMain')) {
return Controller::curr()->AbsoluteLink() . 'show/' . $page->ID;
}
}
}
class SilverStripeNavigatorItem_StageLink extends SilverStripeNavigatorItem {