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
Ugly hack to fix two strict standarts errors:
[lhc/web/wiklou.git]
/
includes
/
filerepo
/
OldLocalFile.php
diff --git
a/includes/filerepo/OldLocalFile.php
b/includes/filerepo/OldLocalFile.php
index
581bce4
..
4906e79
100644
(file)
--- a/
includes/filerepo/OldLocalFile.php
+++ b/
includes/filerepo/OldLocalFile.php
@@
-11,7
+11,10
@@
class OldLocalFile extends LocalFile {
const CACHE_VERSION = 1;
const MAX_CACHE_ROWS = 20;
const CACHE_VERSION = 1;
const MAX_CACHE_ROWS = 20;
- static function newFromTitle( $title, $repo, $time ) {
+ static function newFromTitle( $title, $repo, $time = null ) {
+ # The null default value is only here to avoid an E_STRICT
+ if( $time === null )
+ throw new MWException( __METHOD__.' got null for $time parameter' );
return new self( $title, $repo, $time, null );
}
return new self( $title, $repo, $time, null );
}