1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-20 11:16:36 +02:00

subtoolbar: only show mail action if plugin is enabled

This commit is contained in:
Andrew Dolgov 2013-01-23 16:33:43 +04:00
parent 1db00af8ad
commit d147154cca

View File

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