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

@@ -65,7 +65,7 @@
</activity> </activity>
<fulltextsearch> <fulltextsearch>
<provider>OCA\Deck\Provider\DeckProvider</provider> <provider min-version="16">OCA\Deck\Provider\DeckProvider</provider>
</fulltextsearch> </fulltextsearch>
</info> </info>

View File

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