]> git.wh0rd.org Git - tt-rss.git/commitdiff
block pref-instances tab if CURL is not available
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 21 Apr 2011 05:25:37 +0000 (09:25 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 21 Apr 2011 05:25:37 +0000 (09:25 +0400)
modules/pref-instances.php

index 5735df59ce1f995852e89a368e134caf91333acb..e365457a02f3101b2f5938031cb947efa4dbfe5a 100644 (file)
                        return;
                }
 
+               if (!function_exists('curl_init')) {
+                       print "<div style='padding : 1em'>";
+                       print_error("This functionality requires CURL functions. Please enable CURL in your PHP configuration and reload this page.");
+                       print "</div>";
+               }
+
                print "<div id=\"pref-instance-wrap\" dojoType=\"dijit.layout.BorderContainer\" gutters=\"false\">";
                print "<div id=\"pref-instance-header\" dojoType=\"dijit.layout.ContentPane\" region=\"top\">";