From fd6dc11f6fc8d27aba8d23d3ee44370229eeac61 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Wed, 10 Jun 2020 00:11:12 +0200 Subject: [PATCH] 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. --- src/Tweeper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.1.4