From 923a21376d0099e7597c52d62dd0a1f0e1291608 Mon Sep 17 00:00:00 2001 From: Julian Seidenberg Date: Wed, 21 Nov 2012 10:43:31 +1300 Subject: [PATCH] ENHANCEMENT: adding a check for dms directory name --- _config.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_config.php b/_config.php index 1fd467f..6dae167 100644 --- a/_config.php +++ b/_config.php @@ -5,4 +5,6 @@ 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')); \ No newline at end of file +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); \ No newline at end of file