mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
MINOR fixed language (from r94920)
This commit is contained in:
parent
2fc9bef6e2
commit
bd649d170d
@ -14,7 +14,7 @@ Object::add_extension('LeftAndMain', 'ControllerSubsites');
|
|||||||
|
|
||||||
Object::add_extension('Group', 'GroupSubsites');
|
Object::add_extension('Group', 'GroupSubsites');
|
||||||
Object::add_extension('Member', 'MemberSubsites');
|
Object::add_extension('Member', 'MemberSubsites');
|
||||||
//Object::add_extension('File', 'FileSubsites');
|
// Object::add_extension('File', 'FileSubsites');
|
||||||
Object::add_extension('ErrorPage', 'ErrorPageSubsite');
|
Object::add_extension('ErrorPage', 'ErrorPageSubsite');
|
||||||
if (class_exists('SiteConfig')) Object::add_extension('SiteConfig', 'SiteConfigSubsites');
|
if (class_exists('SiteConfig')) Object::add_extension('SiteConfig', 'SiteConfigSubsites');
|
||||||
|
|
||||||
|
@ -145,15 +145,15 @@ class SubsitesVirtualPageTest extends SapphireTest {
|
|||||||
$page = $this->objFromFixture('SiteTree', 'importantpage');
|
$page = $this->objFromFixture('SiteTree', 'importantpage');
|
||||||
$page->doUnpublish();
|
$page->doUnpublish();
|
||||||
|
|
||||||
$subsite = $this->objFromFixture('Subsite_Template', 'subsite1');
|
Subsite::changeSubsite($vp1->SubsiteID);
|
||||||
Subsite::changeSubsite($subsite->ID);
|
$_REQUEST['showqueries']=1;
|
||||||
$onLive = Versioned::get_by_stage('Page', 'Live', "SiteTree_Live.ID = ".$vp1->ID);
|
$onLive = Versioned::get_one_by_stage('SubsitesVirtualPage', 'Live', "SiteTree_Live.ID = ".$vp1->ID);
|
||||||
$this->assertNull($onLive, 'SVP has been removed from live');
|
$this->assertFalse($onLive, 'SVP has been removed from live');
|
||||||
|
|
||||||
$subsite = $this->objFromFixture('Subsite_Template', 'subsite2');
|
$subsite = $this->objFromFixture('Subsite_Template', 'subsite2');
|
||||||
Subsite::changeSubsite($subsite->ID);
|
Subsite::changeSubsite($vp2->SubsiteID);
|
||||||
$onLive = Versioned::get_by_stage('Page', 'Live', "SiteTree_Live.ID = ".$vp2->ID);
|
$onLive = Versioned::get_one_by_stage('SubsitesVirtualPage', 'Live', "SiteTree_Live.ID = ".$vp2->ID);
|
||||||
$this->assertNull($onLive, 'SVP has been removed from live');
|
$this->assertFalse($onLive, 'SVP has been removed from live');
|
||||||
}
|
}
|
||||||
|
|
||||||
function fixVersionNumberCache($page) {
|
function fixVersionNumberCache($page) {
|
||||||
|
Loading…
Reference in New Issue
Block a user