includes/specials/SpecialBrokenRedirects.php 1 location
|
@@ 125-137 (lines=13) @@
|
| 122 |
|
); |
| 123 |
|
$links = []; |
| 124 |
|
// if the page is editable, add an edit link |
| 125 |
|
if ( |
| 126 |
|
// check user permissions |
| 127 |
|
$this->getUser()->isAllowed( 'edit' ) && |
| 128 |
|
// check, if the content model is editable through action=edit |
| 129 |
|
ContentHandler::getForTitle( $fromObj )->supportsDirectEditing() |
| 130 |
|
) { |
| 131 |
|
$links[] = Linker::linkKnown( |
| 132 |
|
$fromObj, |
| 133 |
|
$this->msg( 'brokenredirects-edit' )->escaped(), |
| 134 |
|
[], |
| 135 |
|
[ 'action' => 'edit' ] |
| 136 |
|
); |
| 137 |
|
} |
| 138 |
|
$to = Linker::link( |
| 139 |
|
$toObj, |
| 140 |
|
null, |
includes/specials/SpecialWhatlinkshere.php 1 location
|
@@ 390-402 (lines=13) @@
|
| 387 |
|
]; |
| 388 |
|
|
| 389 |
|
// if the page is editable, add an edit link |
| 390 |
|
if ( |
| 391 |
|
// check user permissions |
| 392 |
|
$this->getUser()->isAllowed( 'edit' ) && |
| 393 |
|
// check, if the content model is editable through action=edit |
| 394 |
|
ContentHandler::getForTitle( $target )->supportsDirectEditing() |
| 395 |
|
) { |
| 396 |
|
$links['edit'] = Linker::linkKnown( |
| 397 |
|
$target, |
| 398 |
|
$editText, |
| 399 |
|
[], |
| 400 |
|
[ 'action' => 'edit' ] |
| 401 |
|
); |
| 402 |
|
} |
| 403 |
|
|
| 404 |
|
// build the links html |
| 405 |
|
return $this->getLanguage()->pipeList( $links ); |