limit fulltextsearch to NC16
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
committed by
Julius Härtl
parent
5e0eff5407
commit
bc33a71f0d
@@ -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>
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user