ENHANCEMENT: adding a check for dms directory name

This commit is contained in:
Julian Seidenberg 2012-11-21 10:43:31 +13:00
parent c72bbefabc
commit 923a21376d

View File

@ -6,3 +6,5 @@ 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);