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
Do not insert page titles into querycache.qc_value
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialDoubleRedirects.php
diff --git
a/includes/specials/SpecialDoubleRedirects.php
b/includes/specials/SpecialDoubleRedirects.php
index
cccca50
..
d0d8322
100644
(file)
--- a/
includes/specials/SpecialDoubleRedirects.php
+++ b/
includes/specials/SpecialDoubleRedirects.php
@@
-21,6
+21,7
@@
* @ingroup SpecialPage
*/
* @ingroup SpecialPage
*/
+use MediaWiki\MediaWikiServices;
use Wikimedia\Rdbms\IResultWrapper;
use Wikimedia\Rdbms\IDatabase;
use Wikimedia\Rdbms\IResultWrapper;
use Wikimedia\Rdbms\IDatabase;
@@
-64,7
+65,6
@@
class SpecialDoubleRedirects extends QueryPage {
'fields' => [
'namespace' => 'pa.page_namespace',
'title' => 'pa.page_title',
'fields' => [
'namespace' => 'pa.page_namespace',
'title' => 'pa.page_title',
- 'value' => 'pa.page_title',
'b_namespace' => 'pb.page_namespace',
'b_title' => 'pb.page_title',
'b_namespace' => 'pb.page_namespace',
'b_title' => 'pb.page_title',
@@
-155,7
+155,9
@@
class SpecialDoubleRedirects extends QueryPage {
// if the page is editable, add an edit link
if (
// check user permissions
// if the page is editable, add an edit link
if (
// check user permissions
- $this->getUser()->isAllowed( 'edit' ) &&
+ MediaWikiServices::getInstance()
+ ->getPermissionManager()
+ ->userHasRight( $this->getUser(), 'edit' ) &&
// check, if the content model is editable through action=edit
ContentHandler::getForTitle( $titleA )->supportsDirectEditing()
) {
// check, if the content model is editable through action=edit
ContentHandler::getForTitle( $titleA )->supportsDirectEditing()
) {