X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FTitle.php;h=55c5cd90f1bd194d3c369adba3db98e7d59899e8;hb=ebc4d535f196b1d78b6b53cb95cda35d9cb6295e;hp=8b4075b4de6816a6748fe826f11c181e7b0d1ede;hpb=ecba4509dd2b78fa9ed54fa4e573d1818b2ff290;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Title.php b/includes/Title.php index 8b4075b4de..55c5cd90f1 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -954,6 +954,7 @@ class Title implements LinkTarget { /** * Get the DB key with the initial letter case as specified by the user + * @deprecated since 1.33; please use Title::getDBKey() instead * * @return string DB key */ @@ -1661,7 +1662,7 @@ class Title implements LinkTarget { $p = $this->mInterwiki . ':'; } - if ( 0 != $this->mNamespace ) { + if ( $this->mNamespace != 0 ) { $nsText = $this->getNsText(); if ( $nsText === false ) { @@ -3573,7 +3574,7 @@ class Title implements LinkTarget { $this->mArticleID = $linkCache->addLinkObj( $this ); $linkCache->forUpdate( $oldUpdate ); } else { - if ( -1 == $this->mArticleID ) { + if ( $this->mArticleID == -1 ) { $this->mArticleID = $linkCache->addLinkObj( $this ); } }