limit fulltextsearch to NC16

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
Maxence Lange
2019-02-28 10:00:46 -01:00
committed by Julius Härtl
parent 5e0eff5407
commit bc33a71f0d
2 changed files with 5 additions and 1 deletions

View File

@@ -41,6 +41,7 @@ use OCP\IUser;
use OCP\IUserManager;
use OCP\IURLGenerator;
use OCP\INavigationManager;
use OCP\Util;
use Symfony\Component\EventDispatcher\GenericEvent;
class Application extends App {
@@ -190,6 +191,9 @@ class Application extends App {
}
public function registerFullTextSearch() {
if (Util::getVersion()[0] < 16) {
return;
}
$c = $this->getContainer();
try {