Fixing SS 3.1 support. Changing minimum requirement to 3.1 as a result.

This commit is contained in:
Sean Harvey 2013-04-03 15:33:03 +13:00
parent 0073428e88
commit 801aa48d07
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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;
} }

View File

@ -11,6 +11,6 @@
], ],
"require": "require":
{ {
"silverstripe/framework": "3.*" "silverstripe/framework": "3.1.*"
} }
} }