diff options
author | Joey Hess <joey@kitenet.net> | 2011-09-05 13:21:56 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-09-05 13:21:56 -0400 |
commit | 35b69392c823a064023165d9a3ab6b7568ec1568 (patch) | |
tree | e59ccbb894f2b484c7ad0a9509b1590399b230a9 | |
parent | f774f209133ddce006c74fe36cc7735963fc2516 (diff) | |
download | ikiwiki-35b69392c823a064023165d9a3ab6b7568ec1568.tar ikiwiki-35b69392c823a064023165d9a3ab6b7568ec1568.tar.gz |
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.
-rw-r--r-- | IkiWiki/Plugin/highlight.pm | 5 | ||||
-rw-r--r-- | debian/changelog | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/IkiWiki/Plugin/highlight.pm b/IkiWiki/Plugin/highlight.pm index 65e372db1..33d136fbf 100644 --- a/IkiWiki/Plugin/highlight.pm +++ b/IkiWiki/Plugin/highlight.pm @@ -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(""); diff --git a/debian/changelog b/debian/changelog index 9444de7cb..762e1d19f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 |