From: Yuri Astrakhan Date: Sat, 19 May 2007 01:38:25 +0000 (+0000) Subject: minor fix -- $ns must be int before comparison X-Git-Tag: 1.31.0-rc.0~52875 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=0e4cbd29d85d7919c79a9741cf32659b2d9026e2;p=lhc%2Fweb%2Fwiklou.git minor fix -- $ns must be int before comparison --- diff --git a/includes/Title.php b/includes/Title.php index 1e2bff6693..63b0485442 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -232,7 +232,7 @@ class Title { $t = new Title(); $t->mInterwiki = ''; $t->mFragment = ''; - $t->mNamespace = intval( $ns ); + $t->mNamespace = $ns = intval( $ns ); $t->mDbkeyform = str_replace( ' ', '_', $title ); $t->mArticleID = ( $ns >= 0 ) ? -1 : 0; $t->mUrlform = wfUrlencode( $t->mDbkeyform );