]> git.wh0rd.org Git - tt-rss.git/commitdiff
subtoolbar: only show mail action if plugin is enabled
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 23 Jan 2013 12:33:43 +0000 (16:33 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 23 Jan 2013 12:33:43 +0000 (16:33 +0400)
classes/feeds.php

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