BUGFIX fixed crash scenario in LeftAndMainSubsites

MINOR changed wording on Subsite Virtual Pages. (from r88101) (from r96286)
This commit is contained in:
Tom Rix 2010-03-01 22:02:20 +00:00
parent 273e596d77
commit e7417174f5

View File

@ -14,7 +14,7 @@ class LeftAndMainSubsites extends Extension {
Requirements::javascript('subsites/javascript/LeftAndMain_Subsites.js');
Requirements::javascript('subsites/javascript/VirtualPage_Subsites.js');
if ($currentPage = $this->owner->currentPage()) {
if ($this->owner->class == 'CMSMain' && $currentPage = $this->owner->currentPage()) {
if (Subsite::currentSubsiteID() != $currentPage->SubsiteID) {
Subsite::changeSubsite($currentPage->SubsiteID);
}