mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
added Sitesite support, implemented storycard 33
This commit is contained in:
parent
63212411a0
commit
1498427430
@ -32,6 +32,15 @@ class Subsite extends DataObject implements PermissionProvider {
|
||||
public static $allowed_domains = array(
|
||||
);
|
||||
|
||||
static function set_allowed_domains($domain){
|
||||
if(is_array($domain)){
|
||||
foreach($domain as $do){
|
||||
Subsite::set_allowed_domains($do);
|
||||
}
|
||||
}else{
|
||||
self::$allowed_domains[] = $domain;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Return the base domain for this set of subsites.
|
||||
* You can set this by setting Subsite::$Base_domain, otherwise it defaults to HTTP_HOST
|
||||
|
Loading…
Reference in New Issue
Block a user