dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed behavior of Title::invalidateCache.
[lhc/web/wiklou.git]
/
includes
/
Timestamp.php
diff --git
a/includes/Timestamp.php
b/includes/Timestamp.php
index
92e914e
..
5296122
100644
(file)
--- a/
includes/Timestamp.php
+++ b/
includes/Timestamp.php
@@
-125,7
+125,7
@@
class MWTimestamp {
try {
$final = new DateTime( $strtime, new DateTimeZone( 'GMT' ) );
try {
$final = new DateTime( $strtime, new DateTimeZone( 'GMT' ) );
- } catch( Exception $e ) {
+ } catch
( Exception $e ) {
throw new TimestampException( __METHOD__ . ' Invalid timestamp format.' );
}
throw new TimestampException( __METHOD__ . ' Invalid timestamp format.' );
}
@@
-261,7
+261,7
@@
class MWTimestamp {
}
}
}
}
- $interval = new DateInterval(
'PT' . abs( $diff ) . 'M'
);
+ $interval = new DateInterval(
'PT' . abs( $diff ) . 'M'
);
if ( $diff < 1 ) {
$interval->invert = 1;
}
if ( $diff < 1 ) {
$interval->invert = 1;
}