mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 14:05:29 +02:00
Fixing SS 3.1 support. Changing minimum requirement to 3.1 as a result.
This commit is contained in:
parent
0073428e88
commit
801aa48d07
@ -10,7 +10,7 @@ Adds support for fulltext search engines like Sphinx and Solr to SilverStripe CM
|
|||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
* SilverStripe 3.0
|
* SilverStripe 3.1+
|
||||||
* (optional) [silverstripe-phockito](https://github.com/hafriedlander/silverstripe-phockito) (for testing)
|
* (optional) [silverstripe-phockito](https://github.com/hafriedlander/silverstripe-phockito) (for testing)
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
@ -70,7 +70,7 @@ class SearchIntrospection {
|
|||||||
*/
|
*/
|
||||||
static function has_extension($class, $extension, $includeSubclasses = true) {
|
static function has_extension($class, $extension, $includeSubclasses = true) {
|
||||||
foreach (self::hierarchy($class, $includeSubclasses) as $relatedclass) {
|
foreach (self::hierarchy($class, $includeSubclasses) as $relatedclass) {
|
||||||
if (Object::has_extension($relatedclass, $extension)) return true;
|
if ($relatedclass::has_extension($extension)) return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,6 @@
|
|||||||
],
|
],
|
||||||
"require":
|
"require":
|
||||||
{
|
{
|
||||||
"silverstripe/framework": "3.*"
|
"silverstripe/framework": "3.1.*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user