From d4df26db724597109e88622a7a36d74190d85045 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Wed, 10 Oct 2012 13:49:08 +1300 Subject: [PATCH] BUG Fixing correct URL location to pages --- code/model/RelatedPageLink.php | 2 +- tests/SiteTreeSubsitesTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/model/RelatedPageLink.php b/code/model/RelatedPageLink.php index cc0f20a..27e90b2 100644 --- a/code/model/RelatedPageLink.php +++ b/code/model/RelatedPageLink.php @@ -65,7 +65,7 @@ class RelatedPageLink extends DataObject { // Use cmsEditlink only when moving between different pages in the same subsite. $classClause = ($page->SubsiteID == $otherPage->SubsiteID) ? ' class="cmsEditlink"' : ''; - return '" . Convert::raw2xml($page->Title) . ''; + return '" . Convert::raw2xml($page->Title) . ''; } function AbsoluteLink($master = false) { diff --git a/tests/SiteTreeSubsitesTest.php b/tests/SiteTreeSubsitesTest.php index db44e23..a78177c 100644 --- a/tests/SiteTreeSubsitesTest.php +++ b/tests/SiteTreeSubsitesTest.php @@ -80,7 +80,7 @@ class SiteTreeSubsitesTest extends SapphireTest { $this->assertEquals($importantpage->canEdit(), $link->canEdit()); $this->assertEquals($importantpage->canDelete(), $link->canDelete()); $link->AbsoluteLink(true); - $this->assertEquals($link->RelatedPageAdminLink(), 'Contact Us'); + $this->assertEquals($link->RelatedPageAdminLink(), 'Contact Us'); } function testCanEditSiteTree() { @@ -216,4 +216,4 @@ class SiteTreeSubsitesTest extends SapphireTest { class SiteTreeSubsitesTest_ClassA extends SiteTree implements TestOnly {} -class SiteTreeSubsitesTest_ClassB extends SiteTree implements TestOnly {} \ No newline at end of file +class SiteTreeSubsitesTest_ClassB extends SiteTree implements TestOnly {}