added Sitesite support, implemented storycard 33

This commit is contained in:
Normann Lou 2008-04-22 06:53:35 +00:00
parent 63212411a0
commit 1498427430

View File

@ -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