dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa22756
)
Avoid making master connection from Skin::getUndeleteLink
author
Thalia
<thalia.e.chan@googlemail.com>
Wed, 30 Jan 2019 22:32:52 +0000
(14:32 -0800)
committer
Thalia
<thalia.e.chan@googlemail.com>
Wed, 30 Jan 2019 22:51:27 +0000
(14:51 -0800)
Do this by calling Title:quickUserCan instead of Title::userCan
from Skin::getUndeleteLink.
Bug: T214735
Change-Id: I24dfd86275638e52012a5647ab3e5c848af840c2
includes/skins/Skin.php
patch
|
blob
|
history
diff --git
a/includes/skins/Skin.php
b/includes/skins/Skin.php
index
7a2679e
..
54dfff3
100644
(file)
--- a/
includes/skins/Skin.php
+++ b/
includes/skins/Skin.php
@@
-719,7
+719,7
@@
abstract class Skin extends ContextSource {
$title = $this->getTitle();
if ( ( !$title->exists() || $action == 'history' ) &&
- $title->
u
serCan( 'deletedhistory', $this->getUser() )
+ $title->
quickU
serCan( 'deletedhistory', $this->getUser() )
) {
$n = $title->isDeleted();