From: Antoine Musso Date: Mon, 26 Dec 2005 22:35:47 +0000 (+0000) Subject: Fix fatal error when $wgProfiling = false; X-Git-Tag: 1.6.0~874 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=85cd400ca4a6b485adcc29ebacecb8e996f1295b;p=lhc%2Fweb%2Fwiklou.git Fix fatal error when $wgProfiling = false; --- diff --git a/includes/LinkCache.php b/includes/LinkCache.php index dd87fcead2..f96fdf426e 100644 --- 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 $wgProfiling, $wgProfiler; + if ( $wgProfiling && isset( $wgProfiler ) ) { $fname .= ' (' . $wgProfiler->getCurrentSection() . ')'; }