equal
deleted
inserted
replaced
|
1 # |
|
2 # TWiki Enterprise Collaboration Platform, http://TWiki.org/ |
|
3 # |
|
4 # Copyright (C) 2000-2006 TWiki Contributors. |
|
5 # |
|
6 # This program is free software; you can redistribute it and/or |
|
7 # modify it under the terms of the GNU General Public License |
|
8 # as published by the Free Software Foundation; either version 2 |
|
9 # of the License, or (at your option) any later version. For |
|
10 # more details read LICENSE in the root of this distribution. |
|
11 # |
|
12 # This program is distributed in the hope that it will be useful, |
|
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
15 # |
|
16 # As per the GPL, removal of this notice is prohibited. |
|
17 package TWiki::Configure::Checkers::RCS::SearchAlgorithm; |
|
18 use base 'TWiki::Configure::Checker'; |
|
19 |
|
20 use strict; |
|
21 |
|
22 use TWiki::Configure::Checker; |
|
23 |
|
24 sub check { |
|
25 my $this = shift; |
|
26 |
|
27 my $mess = ''; |
|
28 if( $TWiki::cfg{RCS}{SearchAlgorithm} =~ /Native$/) { |
|
29 eval 'use NativeTWikiSearch'; |
|
30 if ($@) { |
|
31 $mess .= $this->ERROR(<<EOF); |
|
32 Sorry, I could not find the required components for Native search. The |
|
33 error was: $@ |
|
34 EOF |
|
35 } |
|
36 } |
|
37 |
|
38 return $mess; |
|
39 }; |
|
40 |
|
41 1; |