Skip to content

Commit

Permalink
limit fulltextsearch to NC16
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <[email protected]>
  • Loading branch information
ArtificialOwl committed Feb 28, 2019
1 parent aa1d953 commit 8e1b46d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
</activity>

<fulltextsearch>
<provider>OCA\Deck\Provider\DeckProvider</provider>
<provider min-version="16">OCA\Deck\Provider\DeckProvider</provider>
</fulltextsearch>

</info>
4 changes: 4 additions & 0 deletions lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
use OCP\IUserManager;
use OCP\IURLGenerator;
use OCP\INavigationManager;
use OCP\Util;
use Symfony\Component\EventDispatcher\GenericEvent;

class Application extends App {
Expand Down Expand Up @@ -157,6 +158,9 @@ protected function registerCommentsEventHandler() {
}

public function registerFullTextSearch() {
if (Util::getVersion()[0] < 16) {
return;
}

$c = $this->getContainer();
try {
Expand Down

0 comments on commit 8e1b46d

Please sign in to comment.