Skip to content

Commit

Permalink
APICHANGE: Use late static binding for Object::remove_extension()
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewandante authored and Sean Harvey committed Nov 6, 2012
1 parent 1722f00 commit 48a9bcf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/model/SiteTreeTest.php
Expand Up @@ -39,8 +39,8 @@ static public function set_up_once() {


// refresh the extended statics - different fields in $db with Translatable enabled // refresh the extended statics - different fields in $db with Translatable enabled
if(self::$origTranslatableSettings['has_extension']) { if(self::$origTranslatableSettings['has_extension']) {
Object::remove_extension('SiteTree', 'Translatable'); SiteTree::remove_extension('Translatable');
Object::remove_extension('SiteConfig', 'Translatable'); SiteConfig::remove_extension('Translatable');
} }
} }


Expand Down
2 changes: 1 addition & 1 deletion tests/staticpublisher/FilesystemPublisherTest.php
Expand Up @@ -23,7 +23,7 @@ public function setUp() {
public function tearDown() { public function tearDown() {
parent::tearDown(); parent::tearDown();


Object::remove_extension("SiteTree", "FilesystemPublisher('assets/FilesystemPublisherTest-static-folder/')"); SiteTree::remove_extension("FilesystemPublisher('assets/FilesystemPublisherTest-static-folder/')");


FilesystemPublisher::$domain_based_caching = $this->orig['domain_based_caching']; FilesystemPublisher::$domain_based_caching = $this->orig['domain_based_caching'];


Expand Down

0 comments on commit 48a9bcf

Please sign in to comment.