From: Domas Mituzas Date: Sat, 21 Jan 2006 17:08:41 +0000 (+0000) Subject: typo X-Git-Tag: 1.6.0~461 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/supprimer.php?a=commitdiff_plain;h=5e13736e57226cf424ce7f25b2b0fe9e823a6920;p=lhc%2Fweb%2Fwiklou.git typo --- diff --git a/includes/Title.php b/includes/Title.php index 1dca82ee75..92d87879d7 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -442,6 +442,7 @@ class Title { global $wgDBname, $wgInterwikiCache, $wgInterwikiScopes, $wgInterwikiFallbackSite; global $wgTitleInterwikiCache; static $db, $site; + if (!$db) $db=dba_open($wgInterwikiCache,'r','cdb'); /* Resolve site name */ @@ -457,7 +458,7 @@ class Title { } if ($value=='' and $wgInterwikiScopes>=2) { /* try globals */ - $value = dba_fetch("__globals:{$key}", $db); + $value = dba_fetch("__global:{$key}", $db); } if ($value=='undef') $value=''; @@ -468,7 +469,7 @@ class Title { if ($value!='') { list($local,$url)=explode(' ',$value,2); $s->iw_url=$url; - $s->iw_local=$local; + $s->iw_local=(int)$local; } $wgTitleInterwikiCache[$wgDBname.':interwiki:'.$key] = $s; return $s->iw_url;