-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated for foundation 6.4. Simplified. Dependencies locked in.
- Loading branch information
1 parent
1913a1b
commit ea54db9
Showing
20 changed files
with
454 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,40 +10,31 @@ | |
// include configuration set in _ss_environment.php | ||
require_once('conf/ConfigureFromEnv.php'); | ||
|
||
// Hide assests etc from search | ||
FulltextSearchable::enable(array('SiteTree')); | ||
// Remove extra buttons from editor | ||
HtmlEditorConfig::get('cms')->removeButtons('selectall', 'visualaid', 'strikethrough', 'pasteword', 'cut', 'copy', 'paste'); | ||
|
||
// DEV | ||
if (Director::isDev()) { | ||
// Turn on all errors | ||
ini_set('display_errors', 1); | ||
ini_set("log_errors", 1); | ||
// error_reporting(E_ERROR | E_PARSE); | ||
// error_reporting(E_ALL && ~E_DEPRECATED); | ||
error_reporting(E_ALL | E_STRICT); | ||
|
||
SS_Log::add_writer(new SS_LogFileWriter(dirname(__FILE__).'/errors.log')); | ||
|
||
// Use Mailgun to send all emails while in DEV mode | ||
// When in LIVE/TEST mode all emails will be sent via the default Mail class. | ||
Email::set_mailer( new SmtpMailer() ); | ||
|
||
// SSViewer::flush_template_cache(); | ||
// Email::send_all_emails_to('[email protected]'); | ||
} | ||
|
||
// TEST | ||
if (Director::isTest()) { | ||
|
||
// BasicAuth::protect_entire_site(); | ||
|
||
ini_set('display_errors', 1); | ||
ini_set("log_errors", 1); | ||
error_reporting(E_ALL | E_STRICT); | ||
|
||
SS_Log::add_writer(new SS_LogFileWriter(dirname(__FILE__).'/errors.log')); | ||
|
||
// Email::set_mailer( new SmtpMailer() ); | ||
//Email::send_all_emails_to('[email protected]'); | ||
|
||
} | ||
|
||
// Remove extra buttons from editor | ||
HtmlEditorConfig::get('cms')->removeButtons('selectall', 'visualaid', 'strikethrough', 'pasteword', 'cut', 'copy', 'paste'); | ||
// LIVE | ||
// if (Director::isLive()) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.