forked from symbiote/silverstripe-multisites
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_config.php
46 lines (37 loc) · 1.44 KB
/
_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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
* @package silverstripe-multisites
*/
if(!ClassInfo::exists('MultiValueField')) {
$view = new DebugView();
$link = 'https://github.com/nyeholt/silverstripe-multivaluefield';
if(!headers_sent()) {
header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error');
}
$view->writeHeader();
$view->writeInfo('Dependency Error', 'The Multisites module requires the MultiValueField module.');
$view->writeParagraph("Please install the <a href=\"$link\">MultiValueField</a> module.");
$view->writeFooter();
exit;
}
if(!defined('MULTISITES_PATH')) define('MULTISITES_PATH', rtrim(basename(dirname(__FILE__))));
CMSMenu::remove_menu_item('MultisitesCMSSiteAddController');
CMSMenu::remove_menu_item('MultisitesCMSPageAddController');
LeftAndMain::require_css(MULTISITES_PATH . '/css/MultisitesAdmin.css');
LeftAndMain::require_javascript(MULTISITES_PATH . '/javascript/MultisitesAdmin.js');
// Remove LeftAndMain.AddForm.js - at least until this ticket is resolved
// http://open.silverstripe.org/ticket/7987
Requirements::block(FRAMEWORK_ADMIN_DIR . '/javascript/LeftAndMain.AddForm.js');
SS_Report::add_excluded_reports(array(
'EmptyPagesReport',
'BrokenRedirectorPagesReport',
'BrokenVirtualPagesReport',
'RecentlyEditedReport',
'SideReport_EmptyPages',
'BrokenLinksReport',
'SideReport_RecentlyEdited',
'SideReport_BrokenLinks',
'SideReport_BrokenFiles',
'SideReport_BrokenVirtualPages',
'SideReport_BrokenRedirectorPages'
));