diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f459ac..53b60e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# v1.4.4 +## 11/01/2017 + +3. [](#bugfix) + * Fixed `CURLOPT_AUTOREFERER` constant + # v1.4.3 ## 10/31/2016 @@ -87,7 +93,7 @@ 1. [](#new) * By default `External Links` now uses the class `external-links` for CSS styling; using `external` is still possible e.g. for manually markup external links 2. [](#improved) - * Improved usage example in README.md + * Improved usage example in `README.md` 3. [](#bugfix) * Fixed [#1](https://github.com/Sommerregen/grav-plugin-external-links/issues/4) (Issue with LightSlider plugin) @@ -95,7 +101,7 @@ ## 02/06/2015 1. [](#new) - * Added usage example in README.md + * Added usage example in `README.md` * Add icons next to external links via CSS when using class `external` only 2. [](#improved) * Added support for HHVM **(requires Grav 0.9.17+)** diff --git a/blueprints.yaml b/blueprints.yaml index c383828..1979cc2 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -1,5 +1,5 @@ name: External Links -version: 1.4.3 +version: 1.4.4 description: "This plugin adds small icons to external and mailto links, informing users the link will take them to a new site or open their email client." icon: external-link author: diff --git a/classes/ExternalLinks.php b/classes/ExternalLinks.php index 6ff840d..7b8e46c 100644 --- a/classes/ExternalLinks.php +++ b/classes/ExternalLinks.php @@ -346,7 +346,7 @@ protected function getRemoteImageSize($uri, $limit = -1) $options = array( CURLOPT_HEADER => false, // Don't return headers CURLOPT_FOLLOWLOCATION => true, // Follow redirects - CURLOPT_AUT||EFERER => true, // Set referrer on redirect + CURLOPT_AUTOREFERER => true, // Set referrer on redirect CURLOPT_CONNECTTIMEOUT => 120, // Timeout on connect CURLOPT_TIMEOUT => 120, // Timeout on response CURLOPT_MAXREDIRS => 10, // Stop after 10 redirects @@ -359,7 +359,7 @@ protected function getRemoteImageSize($uri, $limit = -1) $curl = curl_init(); curl_setopt_array($curl, $options); - if ( $limit > 0 ) { + if ($limit > 0) { // Loading number of $limit $headers = array('Range: bytes=0-' . $limit); curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); diff --git a/external_links.php b/external_links.php index c68741e..595c793 100644 --- a/external_links.php +++ b/external_links.php @@ -1,6 +1,6 @@ * @author Benjamin Regler * @copyright 2016, Benjamin Regler diff --git a/hebe.json b/hebe.json deleted file mode 100644 index 3b2d3a0..0000000 --- a/hebe.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "project":"grav-plugin-external-links", - "platforms":{ - "grav":{ - "nodes":{ - "plugin":[ - { - "source":"/", - "destination":"/user/plugins/external_links" - } - ] - } - } - } -}