Merge remote-tracking branch 'origin/3.0' into 3.1

Conflicts:
	code/controllers/SilverStripeNavigator.php
This commit is contained in:
Ingo Schommer 2013-02-07 21:44:41 +01:00
commit 53c2059a01
2 changed files with 7 additions and 12 deletions

View File

@ -122,11 +122,6 @@ class CMSPageHistoryController extends CMSMain {
$fields = $fields->makeReadonly();
foreach($fields->dataFields() as $field) {
$field->dontEscape = true;
$field->reserveNL = true;
}
if($compareID) {
$link = Controller::join_links(
$this->Link('show'),

View File

@ -238,13 +238,13 @@ class SilverStripeNavigatorItem_CMSLink extends SilverStripeNavigatorItem {
}
public function isActive() {
return (Controller::curr() instanceof CMSMain);
return (Controller::curr() instanceof LeftAndMain);
}
public function canView($member = null) {
return (
// Don't show in CMS
!(Controller::curr() instanceof CMSMain)
!(Controller::curr() instanceof LeftAndMain)
// Don't follow redirects in preview, they break the CMS editing form
&& !($this->record instanceof RedirectorPage)
);