projects
/
tweeper.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fae2bb7
)
src/Tweeper.php: use file_get_contents to retrieve the local stylesheet
author
Antonio Ospite <ao2@ao2.it>
Tue, 9 Jun 2020 22:11:12 +0000
(
00:11
+0200)
committer
Antonio Ospite <ao2@ao2.it>
Tue, 9 Jun 2020 22:15:42 +0000
(
00:15
+0200)
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
patch
|
blob
|
history
diff --git
a/src/Tweeper.php
b/src/Tweeper.php
index
10e07e3
..
091b030
100644
(file)
--- a/
src/Tweeper.php
+++ b/
src/Tweeper.php
@@
-403,7
+403,7
@@
class Tweeper {
return NULL;
}
- $stylesheet_contents =
Tweeper::getUrlC
ontents($stylesheet);
+ $stylesheet_contents =
file_get_c
ontents($stylesheet);
if (FALSE === $stylesheet_contents) {
trigger_error("Cannot open $stylesheet", E_USER_WARNING);
return NULL;