Avoid warning message when generating setup file if highlight is not installed. Closes: #637606

There's a nice message if the plugin is loaded and used and highlight is
not available, and a nice fallback. So no need for this other warning,
which can happen any time all plugins are loaded to generate a setup file.
master
Joey Hess 2011-09-05 13:21:56 -04:00
parent f774f20913
commit 35b69392c8
2 changed files with 2 additions and 5 deletions

View File

@ -51,12 +51,7 @@ sub getsetup () {
}
sub checkconfig () {
eval q{use highlight};
if ($@) {
print STDERR "Failed to load highlight. Configuring anyway.\n";
};
if (highlight::DataDir->can('new')){
$data_dir=new highlight::DataDir();
$data_dir->searchDataDir("");

2
debian/changelog vendored
View File

@ -25,6 +25,8 @@ ikiwiki (3.20110716) UNRELEASED; urgency=low
the inlining page.
* Fix comments testsuite to not rely on Date::Parse's ability to
parse the date Columbus discovered America. Closes: #640350
* Avoid warning message when generating setup file if highlight
is not installed. Closes: #637606
-- Joey Hess <joeyh@debian.org> Tue, 19 Jul 2011 11:22:52 -0400