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 /IkiWiki | |
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.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/highlight.pm | 5 |
1 files changed, 0 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(""); |