From: Antonio Ospite Date: Tue, 9 Jun 2020 22:11:12 +0000 (+0200) Subject: src/Tweeper.php: use file_get_contents to retrieve the local stylesheet X-Git-Tag: v1.4.2~4 X-Git-Url: https://git.ao2.it/tweeper.git/commitdiff_plain/fd6dc11f6fc8d27aba8d23d3ee44370229eeac61 src/Tweeper.php: use file_get_contents to retrieve the local stylesheet Using Tweeper::getUrlContents(), which uses cURL, is really overkill to get local file contents, keep things simple and use file_get_contents. --- diff --git a/src/Tweeper.php b/src/Tweeper.php index 10e07e3..091b030 100644 --- a/src/Tweeper.php +++ b/src/Tweeper.php @@ -403,7 +403,7 @@ class Tweeper { return NULL; } - $stylesheet_contents = Tweeper::getUrlContents($stylesheet); + $stylesheet_contents = file_get_contents($stylesheet); if (FALSE === $stylesheet_contents) { trigger_error("Cannot open $stylesheet", E_USER_WARNING); return NULL;