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:
14ca813
)
Fix fatal error when $wgProfiling = false;
author
Antoine Musso
<hashar@users.mediawiki.org>
Mon, 26 Dec 2005 22:35:47 +0000
(22:35 +0000)
committer
Antoine Musso
<hashar@users.mediawiki.org>
Mon, 26 Dec 2005 22:35:47 +0000
(22:35 +0000)
includes/LinkCache.php
patch
|
blob
|
history
diff --git
a/includes/LinkCache.php
b/includes/LinkCache.php
index
dd87fce
..
f96fdf4
100644
(file)
--- a/
includes/LinkCache.php
+++ b/
includes/LinkCache.php
@@
-135,8
+135,8
@@
class LinkCache {
if ( 0 != $id ) { return $id; }
$fname = 'LinkCache::addLinkObj';
- global $wgProfiler;
- if ( isset( $wgProfiler ) ) {
+ global $wgProfil
ing, $wgProfil
er;
+ if (
$wgProfiling &&
isset( $wgProfiler ) ) {
$fname .= ' (' . $wgProfiler->getCurrentSection() . ')';
}