diff options
author | Joey Hess <joey@kitenet.net> | 2012-03-18 14:34:21 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-03-18 14:34:21 -0400 |
commit | d134a2a6e93bbb26664b027a10d98ac996a63cfc (patch) | |
tree | d7e6c50ed5dca7c1264761b77576ad4db6b0524d /IkiWiki/Plugin/attachment.pm | |
parent | 9c30a00b24f38421732b23b4223c389ee697796e (diff) | |
download | ikiwiki-d134a2a6e93bbb26664b027a10d98ac996a63cfc.tar ikiwiki-d134a2a6e93bbb26664b027a10d98ac996a63cfc.tar.gz |
avoid unnecessary uses of UNIVERSAL
Foo->Bar->can("method") works just as well, even if Foo::Bar is not
loaded. Using UNIVERSAL::can is deprecated.
But, I was unable to easily eliminate conditional.pm's use of UNIVERSAL::can
Diffstat (limited to 'IkiWiki/Plugin/attachment.pm')
-rw-r--r-- | IkiWiki/Plugin/attachment.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/attachment.pm b/IkiWiki/Plugin/attachment.pm index 5a180cd5c..133a54daf 100644 --- a/IkiWiki/Plugin/attachment.pm +++ b/IkiWiki/Plugin/attachment.pm @@ -148,7 +148,7 @@ sub formbuilder (@) { $f=Encode::decode_utf8($f); $f=~s/^$page\///; if (IkiWiki::isinlinableimage($f) && - UNIVERSAL::can("IkiWiki::Plugin::img", "import")) { + IkiWiki::Plugin::img->can("import")) { $add.='[[!img '.$f.' align="right" size="" alt=""]]'; } else { |