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
Keep backend param to search API as long as there's a backend
[lhc/web/wiklou.git]
/
includes
/
MWTimestamp.php
diff --git
a/includes/MWTimestamp.php
b/includes/MWTimestamp.php
index
4b3d36a
..
ea91470
100644
(file)
--- a/
includes/MWTimestamp.php
+++ b/
includes/MWTimestamp.php
@@
-182,6
+182,11
@@
class MWTimestamp {
$output .= ' GMT';
}
+ if ( $style == TS_MW && strlen( $output ) !== 14 ) {
+ throw new TimestampException( __METHOD__ . ': The timestamp cannot be represented in ' .
+ 'the specified format' );
+ }
+
return $output;
}