2 # TWiki Enterprise Collaboration Platform, http://TWiki.org/
4 # Copyright (C) 2000-2006 TWiki Contributors.
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.
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.
16 # As per the GPL, removal of this notice is prohibited.
17 package TWiki::Configure::Checkers::PubUrlPath;
21 use TWiki::Configure::Checker;
23 use base 'TWiki::Configure::Checker';
28 unless( $TWiki::cfg{PubUrlPath} && $TWiki::cfg{PubUrlPath} ne 'NOT SET') {
29 my $guess = $TWiki::cfg{ScriptUrlPath};
30 $guess =~ s/bin$/pub/;
31 $TWiki::cfg{PubUrlPath} = $guess;
32 return $this->guessed(0);
34 return 'This is not set correctly if the link below is broken:'.CGI::br().
35 '<a rel="nofollow" href="'.$TWiki::cfg{PubUrlPath}.'">Go to "pub" directory</a>';