block pref-instances tab if CURL is not available

This commit is contained in:
Andrew Dolgov 2011-04-21 09:25:37 +04:00
parent f32eb194bb
commit 8d588e2d9a
1 changed files with 6 additions and 0 deletions

View File

@ -113,6 +113,12 @@
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\">";