From 48215182f0420e487c8a9486dcd9e69da2a3d3ea Mon Sep 17 00:00:00 2001 From: cam-findlay Date: Wed, 27 Mar 2013 09:13:03 +1300 Subject: [PATCH] Updated the add_extension in _config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently breaking 3.1 sites with error message: Fatal error: Object::add_extension() - Extension "SiteTree" is not a subclass of Extension in /Applications/MAMP/htdocs/nzqa-intranet/framework/core/Object.php on line 467 --- _config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_config.php b/_config.php index 3e67361..b809763 100644 --- a/_config.php +++ b/_config.php @@ -11,8 +11,8 @@ define('DMS_DIR', 'dms'); 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); -Object::add_extension('SiteTree','DMSSiteTreeExtension'); -Object::add_extension('HtmlEditorField_Toolbar','DocumentHtmlEditorFieldToolbar'); +SiteTree::add_extension('DMSSiteTreeExtension'); +HtmlEditorField_Toolbar::add_extension('DocumentHtmlEditorFieldToolbar'); CMSMenu::remove_menu_item('DMSDocumentAddController'); ShortcodeParser::get('default')->register('dms_document_link', array('DMSDocument_Controller', 'dms_link_shortcode_handler'));