mirror of
https://github.com/silverstripe/silverstripe-textextraction
synced 2024-09-30 13:19:06 +02:00
fixed the version comparison using version_compare() instead of plain float
This commit is contained in:
parent
545e711f16
commit
196007314a
@ -72,7 +72,7 @@ class TikaServerTextExtractor extends FileTextExtractor
|
|||||||
{
|
{
|
||||||
return $this->getServerEndpoint() &&
|
return $this->getServerEndpoint() &&
|
||||||
$this->getClient()->isAvailable() &&
|
$this->getClient()->isAvailable() &&
|
||||||
$this->getVersion() >= 1.7;
|
version_compare($this->getVersion(), '1.7.0') >= 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function supportsExtension($extension)
|
public function supportsExtension($extension)
|
||||||
|
Loading…
Reference in New Issue
Block a user