Permalink
Browse files

BUGFIX Fixing FulltextSearchable and Hierarchy to conform to the pare…

…nt DataExtension for E_STRICT compliance.
  • Loading branch information...
1 parent 9bd7068 commit 41433f12115f8732105692138b682ff2f1e4329e @halkyon halkyon committed Apr 12, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 model/Hierarchy.php
  2. +2 −2 search/FulltextSearchable.php
View
@@ -25,7 +25,7 @@ function augmentDatabase() {
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 @@ function __construct($searchFields) {
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 @@ static function add_to_class($class, $extensionClass, $args) {
*
* @return Array
*/
- function get_searchable_classes() {
+ static function get_searchable_classes() {
return self::$searchable_classes;
}

0 comments on commit 41433f1

Please sign in to comment.