subtoolbar: only show mail action if plugin is enabled

master
Andrew Dolgov 12 years ago
parent 1db00af8ad
commit d147154cca

@ -119,8 +119,12 @@ class Feeds extends Handler_Protected {
} }
$reply .= "<option value=\"emailArticle(false)\">".__('Forward by email'). global $pluginhost;
"</option>";
if ($pluginhost->get_plugin("mail")) {
$reply .= "<option value=\"emailArticle(false)\">".__('Forward by email').
"</option>";
}
$reply .= "<option value=\"0\" disabled=\"1\">".__('Feed:')."</option>"; $reply .= "<option value=\"0\" disabled=\"1\">".__('Feed:')."</option>";

Loading…
Cancel
Save