projects
/
tweeper.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tweeper.php: rename the ERROR_STREAM variable to error_stream
[tweeper.git]
/
tweeper.php
diff --git
a/tweeper.php
b/tweeper.php
index
36bf085
..
f1a4ba9
100644
(file)
--- a/
tweeper.php
+++ b/
tweeper.php
@@
-44,24
+44,24
@@
class Tweeper {
/**
* Convert numeric Epoch to the date format expected in a RSS document.
*/
/**
* Convert numeric Epoch to the date format expected in a RSS document.
*/
- public static function epoch
_to_gmd
ate($timestamp) {
+ public static function epoch
ToRssD
ate($timestamp) {
if (!is_numeric($timestamp) || is_nan($timestamp)) {
$timestamp = 0;
}
if (!is_numeric($timestamp) || is_nan($timestamp)) {
$timestamp = 0;
}
- return gmdate(
'D, d M Y H:i:s', $timestamp) . ' GMT'
;
+ return gmdate(
DATE_RSS, $timestamp)
;
}
/**
* Convert generic date string to the date format expected in a RSS document.
*/
}
/**
* Convert generic date string to the date format expected in a RSS document.
*/
- public static function str
_to_gmd
ate($date) {
+ public static function str
ToRssD
ate($date) {
$timestamp = strtotime($date);
if (FALSE === $timestamp) {
$timestamp = 0;
}
$timestamp = strtotime($date);
if (FALSE === $timestamp) {
$timestamp = 0;
}
- return Tweeper::epoch
_to_gmd
ate($timestamp);
+ return Tweeper::epoch
ToRssD
ate($timestamp);
}
/**
}
/**
@@
-413,15
+413,15
@@
function parse_options_query_string() {
if (is_cli()) {
$options = parse_options_cli($argv, $argc);
if (is_cli()) {
$options = parse_options_cli($argv, $argc);
- $
ERROR_STREAM
= fopen('php://stderr', 'w');
+ $
error_stream
= fopen('php://stderr', 'w');
}
else {
$options = parse_options_query_string();
}
else {
$options = parse_options_query_string();
- $
ERROR_STREAM
= fopen('php://output', 'w');
+ $
error_stream
= fopen('php://output', 'w');
}
if (!isset($options['src_url'])) {
}
if (!isset($options['src_url'])) {
- fwrite($
ERROR_STREAM
, usage(is_cli() ? $argv : NULL));
+ fwrite($
error_stream
, usage(is_cli() ? $argv : NULL));
exit(1);
}
exit(1);
}