From 1722f00869d2ab72d49ff70318b72b766041abb3 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Tue, 9 Oct 2012 16:56:57 +1300 Subject: [PATCH] APICHANGE: add_extension() is now called directly on the class, instead of on Object --- _config.php | 2 +- code/staticpublisher/FilesystemPublisher.php | 2 +- tests/model/SiteTreeTest.php | 4 ++-- tests/staticpublisher/FilesystemPublisherTest.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/_config.php b/_config.php index 4dc5e95d..8dcb80d8 100644 --- a/_config.php +++ b/_config.php @@ -12,7 +12,7 @@ define('CMS_PATH', BASE_PATH . '/' . CMS_DIR); */ ShortcodeParser::get('default')->register('sitetree_link', array('SiteTree', 'link_shortcode_handler')); -Object::add_extension('File', 'SiteTreeFileExtension'); +File::add_extension('SiteTreeFileExtension'); // TODO Remove once we can configure CMSMenu through static, nested configuration files CMSMenu::remove_menu_item('CMSMain'); diff --git a/code/staticpublisher/FilesystemPublisher.php b/code/staticpublisher/FilesystemPublisher.php index 124ebf70..abe16a4b 100644 --- a/code/staticpublisher/FilesystemPublisher.php +++ b/code/staticpublisher/FilesystemPublisher.php @@ -1,7 +1,7 @@ orig['domain_based_caching'] = FilesystemPublisher::$domain_based_caching; FilesystemPublisher::$domain_based_caching = false;