mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
10 lines
526 B
PHP
10 lines
526 B
PHP
<?php
|
|
define('DMS_DIR', 'dms');
|
|
|
|
Object::add_extension('SiteTree','DMSSiteTreeExtension');
|
|
Object::add_extension('HtmlEditorField_Toolbar','DocumentHtmlEditorFieldToolbar');
|
|
CMSMenu::remove_menu_item('DMSDocumentAddController');
|
|
|
|
ShortcodeParser::get('default')->register('dms_document_link', array('DMSDocument_Controller', 'dms_link_shortcode_handler'));
|
|
|
|
if (!file_exists(BASE_PATH . DIRECTORY_SEPARATOR . DMS_DIR)) user_error("DMS directory named incorrectly. Please install the DMS module into a folder named: ".DMS_DIR); |