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
Be more db-friendly when purging expired userrights
[lhc/web/wiklou.git]
/
includes
/
Title.php
diff --git
a/includes/Title.php
b/includes/Title.php
index
9aad401
..
1be9863
100644
(file)
--- a/
includes/Title.php
+++ b/
includes/Title.php
@@
-1812,10
+1812,10
@@
class Title implements LinkTarget {
if ( $this->isExternal() ) {
$target = SpecialPage::getTitleFor(
'GoToInterwiki',
if ( $this->isExternal() ) {
$target = SpecialPage::getTitleFor(
'GoToInterwiki',
- $this->getPrefixedDB
K
ey()
+ $this->getPrefixedDB
k
ey()
);
}
);
}
- return $target->getFullU
rl
( $query, false, $proto );
+ return $target->getFullU
RL
( $query, false, $proto );
}
/**
}
/**
@@
-2735,8
+2735,8
@@
class Title implements LinkTarget {
if ( $this->mTitleProtection === null ) {
$dbr = wfGetDB( DB_REPLICA );
if ( $this->mTitleProtection === null ) {
$dbr = wfGetDB( DB_REPLICA );
- $commentStore =
new CommentStore( 'pt_reason'
);
- $commentQuery = $commentStore->getJoin();
+ $commentStore =
CommentStore::getStore(
);
+ $commentQuery = $commentStore->getJoin(
'pt_reason'
);
$res = $dbr->select(
[ 'protected_titles' ] + $commentQuery['tables'],
[
$res = $dbr->select(
[ 'protected_titles' ] + $commentQuery['tables'],
[
@@
-2757,7
+2757,7
@@
class Title implements LinkTarget {
'user' => $row['user'],
'expiry' => $dbr->decodeExpiry( $row['expiry'] ),
'permission' => $row['permission'],
'user' => $row['user'],
'expiry' => $dbr->decodeExpiry( $row['expiry'] ),
'permission' => $row['permission'],
- 'reason' => $commentStore->getComment( $row )->text,
+ 'reason' => $commentStore->getComment(
'pt_reason',
$row )->text,
];
} else {
$this->mTitleProtection = false;
];
} else {
$this->mTitleProtection = false;
@@
-4500,7
+4500,7
@@
class Title implements LinkTarget {
}
if ( $this->isExternal() ) {
}
if ( $this->isExternal() ) {
- return true;
// any interwiki link might be viewable, for all we know
+ return true; // any interwiki link might be viewable, for all we know
}
switch ( $this->mNamespace ) {
}
switch ( $this->mNamespace ) {