dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Soft deprecate Title::getUserCaseDBKey()"
[lhc/web/wiklou.git]
/
includes
/
Title.php
diff --git
a/includes/Title.php
b/includes/Title.php
index
8b4075b
..
55c5cd9
100644
(file)
--- 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
/**
* 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
*/
*
* @return string DB key
*/
@@
-1661,7
+1662,7
@@
class Title implements LinkTarget {
$p = $this->mInterwiki . ':';
}
$p = $this->mInterwiki . ':';
}
- if (
0 != $this->mNamespace
) {
+ if (
$this->mNamespace != 0
) {
$nsText = $this->getNsText();
if ( $nsText === false ) {
$nsText = $this->getNsText();
if ( $nsText === false ) {
@@
-3573,7
+3574,7
@@
class Title implements LinkTarget {
$this->mArticleID = $linkCache->addLinkObj( $this );
$linkCache->forUpdate( $oldUpdate );
} else {
$this->mArticleID = $linkCache->addLinkObj( $this );
$linkCache->forUpdate( $oldUpdate );
} else {
- if (
-1 == $this->mArticleID
) {
+ if (
$this->mArticleID == -1
) {
$this->mArticleID = $linkCache->addLinkObj( $this );
}
}
$this->mArticleID = $linkCache->addLinkObj( $this );
}
}