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(); $fields = $fields->makeReadonly();
foreach($fields->dataFields() as $field) {
$field->dontEscape = true;
$field->reserveNL = true;
}
if($compareID) { if($compareID) {
$link = Controller::join_links( $link = Controller::join_links(
$this->Link('show'), $this->Link('show'),

View File

@ -208,7 +208,7 @@ class SilverStripeNavigatorItem extends ViewableData {
(!$currentDraft || ($currentDraft && $this->record->Version != $currentDraft->Version)) (!$currentDraft || ($currentDraft && $this->record->Version != $currentDraft->Version))
&& (!$currentLive || ($currentLive && $this->record->Version != $currentLive->Version)) && (!$currentLive || ($currentLive && $this->record->Version != $currentLive->Version))
); );
} }
return $this->record->_cached_isArchived; return $this->record->_cached_isArchived;
} }
@ -238,13 +238,13 @@ class SilverStripeNavigatorItem_CMSLink extends SilverStripeNavigatorItem {
} }
public function isActive() { public function isActive() {
return (Controller::curr() instanceof CMSMain); return (Controller::curr() instanceof LeftAndMain);
} }
public function canView($member = null) { public function canView($member = null) {
return ( return (
// Don't show in CMS // 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 // Don't follow redirects in preview, they break the CMS editing form
&& !($this->record instanceof RedirectorPage) && !($this->record instanceof RedirectorPage)
); );
@ -404,5 +404,5 @@ class SilverStripeNavigatorItem_ArchiveLink extends SilverStripeNavigatorItem {
public function isActive() { public function isActive() {
return $this->isArchived(); return $this->isArchived();
} }
} }