dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bbf1eb
)
Profiler can be constructed without param
author
Antoine Musso
<hashar@users.mediawiki.org>
Tue, 31 May 2011 17:18:15 +0000
(17:18 +0000)
committer
Antoine Musso
<hashar@users.mediawiki.org>
Tue, 31 May 2011 17:18:15 +0000
(17:18 +0000)
Before that patch, we could see warnings such as:
Missing argument 1 for Profiler::__construct(),
includes/profiler/Profiler.php
patch
|
blob
|
history
diff --git
a/includes/profiler/Profiler.php
b/includes/profiler/Profiler.php
index
c9ac4eb
..
1358828
100644
(file)
--- a/
includes/profiler/Profiler.php
+++ b/
includes/profiler/Profiler.php
@@
-42,7
+42,7
@@
class Profiler {
protected $mProfileID = false;
private static $__instance = null;
- function __construct( $params ) {
+ function __construct( $params
= null
) {
// Push an entry for the pre-profile setup time onto the stack
global $wgRequestTime;
if ( !empty( $wgRequestTime ) ) {