mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Fixing FulltextSearchable and Hierarchy to conform to the parent DataExtension for E_STRICT compliance.
This commit is contained in:
parent
9bd7068394
commit
41433f1211
@ -25,7 +25,7 @@ class Hierarchy extends DataExtension {
|
||||
function augmentWrite(&$manipulation) {
|
||||
}
|
||||
|
||||
static function add_to_class($class, $extensionClass, $args) {
|
||||
static function add_to_class($class, $extensionClass, $args = null) {
|
||||
Config::inst()->update($class, 'has_one', array('Parent' => $class));
|
||||
parent::add_to_class($class, $extensionClass, $args);
|
||||
}
|
||||
|
@ -75,7 +75,7 @@ class FulltextSearchable extends DataExtension {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
static function add_to_class($class, $extensionClass, $args) {
|
||||
static function add_to_class($class, $extensionClass, $args = null) {
|
||||
Config::inst()->update($class, 'indexes', array('SearchFields' => array(
|
||||
'type' => 'fulltext',
|
||||
'name' => 'SearchFields',
|
||||
@ -90,7 +90,7 @@ class FulltextSearchable extends DataExtension {
|
||||
*
|
||||
* @return Array
|
||||
*/
|
||||
function get_searchable_classes() {
|
||||
static function get_searchable_classes() {
|
||||
return self::$searchable_classes;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user