We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 183f047 commit ce49916Copy full SHA for ce49916
fields/fonts.php
@@ -54,6 +54,12 @@ protected function getInput()
54
*/
55
protected function getOptions()
56
{
57
+ // If we have no API key set at all, don't proceed.
58
+ if ($this->getParams()->get('google-fonts-api-key', '') === '')
59
+ {
60
+ return;
61
+ }
62
+
63
$options = new Registry;
64
$options->set('userAgent', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0');
65
$http = HttpFactory::getHttp($options);
0 commit comments