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
fcf1bb2
..
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;
@@
-30,7
+31,7
@@
use Wikimedia\Rdbms\IDatabase;
*
* @ingroup SpecialPage
*/
*
* @ingroup SpecialPage
*/
-class
DoubleRedirectsPage
extends QueryPage {
+class
SpecialDoubleRedirects
extends QueryPage {
function __construct( $name = 'DoubleRedirects' ) {
parent::__construct( $name );
}
function __construct( $name = 'DoubleRedirects' ) {
parent::__construct( $name );
}
@@
-64,7
+65,6
@@
class DoubleRedirectsPage 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 DoubleRedirectsPage 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()
) {