BUGFIX: Don't let SubsitesVirtualPages link to subclasses of virtual page (from r100004)

This commit is contained in:
Tom Rix 2010-03-01 22:35:35 +00:00
parent 2eddac12f0
commit f5bbbf979e

View File

@ -35,7 +35,7 @@ class SubsitesVirtualPage extends VirtualPage {
"MenuTitle"
);
$pageSelectionField->setFilterFunction(create_function('$item', 'return $item->ClassName != "VirtualPage";'));
$pageSelectionField->setFilterFunction(create_function('$item', 'return !($item instanceof VirtualPage);'));
if(Controller::curr()->getRequest()) {
$subsiteID = Controller::curr()->getRequest()->getVar('CopyContentFromID_SubsiteID');