forked from sunnysideup/silverstripe-mysite_ssu_flava
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_config.php
28 lines (17 loc) · 847 Bytes
/
_config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
global $project; $project = 'mysite';
global $database; $database = 'silverstripe_webdevelopment_com';
require_once("conf/ConfigureFromEnv.php");
//===================---------------- START php MODULE ----------------===================
date_default_timezone_set('Pacific/Auckland');
//===================---------------- END php MODULE ----------------===================
//===================---------------- START sapphire MODULE ----------------===================
FulltextSearchable::enable(array("SiteTree"));
if(Director::isLive()) {
Director::forceWWW();
SS_Log::add_writer(new SS_LogEmailWriter('ssuerrors@gmail.com'), SS_Log::ERR);
}
else {
//BasicAuth::protect_entire_site(); see config.yml
}
//===================---------------- END sapphire MODULE ----------------===================