public function shouldChangeSubsite($adminClass, $recordSubsiteID, $currentSubsiteID)
    {
        if (Config::inst()->get($adminClass, 'treats_subsite_0_as_global') && $recordSubsiteID == 0) {
            return false;
        }
        if ($recordSubsiteID != $currentSubsiteID) {
            return true;
        }
        return false;
    }
public function shouldChangeSubsite($adminClass, $recordSubsiteID, $currentSubsiteID)
    {
        if (Config::inst()->get($adminClass, 'treats_subsite_0_as_global') && $recordSubsiteID == 0) {
            return false;
        }
        if ($recordSubsiteID != $currentSubsiteID) {
            return true;
        }
        return false;
    }
public function shouldChangeSubsite ( $ adminClass , $ recordSubsiteID , $ currentSubsiteID ) { if ( Config :: inst ( ) -> get ( $ adminClass , 'treats_subsite_0_as_global' ) && $ recordSubsiteID == 0 ) { return false ; } if ( $ recordSubsiteID != $ currentSubsiteID ) { return true ; } return false ; }
Helper for testing if the subsite should be adjusted.
@param string $adminClass
@param int $recordSubsiteID
@param int $currentSubsiteID
@return bool
Helper for testing if the subsite should be adjusted .