projects
/
tweeper.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/Tweeper.php: fix rendering Instagram images in some feed readers
[tweeper.git]
/
tweeper.php
diff --git
a/tweeper.php
b/tweeper.php
index
49ffb92
..
bcc85fe
100644
(file)
--- a/
tweeper.php
+++ b/
tweeper.php
@@
-4,7
+4,7
@@
* @file
* Tweeper - a Twitter to RSS web scraper.
*
* @file
* Tweeper - a Twitter to RSS web scraper.
*
- * Copyright (C) 2013-20
18
Antonio Ospite <ao2@ao2.it>
+ * Copyright (C) 2013-20
20
Antonio Ospite <ao2@ao2.it>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-51,18
+51,18
@@
function usage($argv) {
* Parse command line options.
*/
function parse_options_cli($argv, $argc) {
* Parse command line options.
*/
function parse_options_cli($argv, $argc) {
- $options =
array(
+ $options =
[
'generate_enclosure' => FALSE,
'show_usernames' => TRUE,
'show_multimedia' => TRUE,
'verbose_output' => TRUE,
'generate_enclosure' => FALSE,
'show_usernames' => TRUE,
'show_multimedia' => TRUE,
'verbose_output' => TRUE,
-
)
;
+
]
;
if ($argc < 2) {
return $options;
}
if ($argc < 2) {
return $options;
}
- $cli_options = getopt("em:u:v:h",
array("help")
);
+ $cli_options = getopt("em:u:v:h",
["help"]
);
foreach ($cli_options as $opt => $val) {
switch ($opt) {
case 'e':
foreach ($cli_options as $opt => $val) {
switch ($opt) {
case 'e':
@@
-121,12
+121,12
@@
function parse_options_cli($argv, $argc) {
* Parse options passed from a query string.
*/
function parse_options_query_string() {
* Parse options passed from a query string.
*/
function parse_options_query_string() {
- $options =
array(
+ $options =
[
'generate_enclosure' => FALSE,
'show_usernames' => TRUE,
'show_multimedia' => TRUE,
'verbose_output' => TRUE,
'generate_enclosure' => FALSE,
'show_usernames' => TRUE,
'show_multimedia' => TRUE,
'verbose_output' => TRUE,
-
)
;
+
]
;
if (isset($_GET['src_url'])) {
$options['src_url'] = $_GET['src_url'];
if (isset($_GET['src_url'])) {
$options['src_url'] = $_GET['src_url'];