Skip to content

Commit

Permalink
updated how we add the extension
Browse files Browse the repository at this point in the history
SS4 Beta has removed the Object class...
bendubuisson authored Jul 13, 2017
1 parent b124f2b commit 6baf564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _config.php
Original file line number Diff line number Diff line change
@@ -5,5 +5,5 @@
}

if (class_exists('SilverStripe\CMS\Controllers\ContentController')) {
\SilverStripe\Core\Object::add_extension('SilverStripe\CMS\Controllers\ContentController', 'Heyday\HashPath\HashPathExtension');
\SilverStripe\Core\Extensible::add_extension('SilverStripe\CMS\Controllers\ContentController', 'Heyday\HashPath\HashPathExtension');
}

0 comments on commit 6baf564

Please sign in to comment.