|
@@ 955-964 (lines=10) @@
|
| 952 |
|
]; |
| 953 |
|
} |
| 954 |
|
// Checks if the page has some kind of viewable content |
| 955 |
|
} elseif ( $title->hasSourceText() ) { |
| 956 |
|
// Adds view source view link |
| 957 |
|
$content_navigation['views']['viewsource'] = [ |
| 958 |
|
'class' => ( $onPage && $action == 'edit' ) ? 'selected' : false, |
| 959 |
|
'text' => wfMessageFallback( "$skname-action-viewsource", 'viewsource' ) |
| 960 |
|
->setContext( $this->getContext() )->text(), |
| 961 |
|
'href' => $title->getLocalURL( $this->editUrlOptions() ), |
| 962 |
|
'primary' => true, // don't collapse this in vector |
| 963 |
|
]; |
| 964 |
|
} |
| 965 |
|
|
| 966 |
|
// Checks if the page exists |
| 967 |
|
if ( $title->exists() ) { |
|
@@ 976-983 (lines=8) @@
|
| 973 |
|
'href' => $title->getLocalURL( 'action=history' ), |
| 974 |
|
]; |
| 975 |
|
|
| 976 |
|
if ( $title->quickUserCan( 'delete', $user ) ) { |
| 977 |
|
$content_navigation['actions']['delete'] = [ |
| 978 |
|
'class' => ( $onPage && $action == 'delete' ) ? 'selected' : false, |
| 979 |
|
'text' => wfMessageFallback( "$skname-action-delete", 'delete' ) |
| 980 |
|
->setContext( $this->getContext() )->text(), |
| 981 |
|
'href' => $title->getLocalURL( 'action=delete' ) |
| 982 |
|
]; |
| 983 |
|
} |
| 984 |
|
|
| 985 |
|
if ( $title->quickUserCan( 'move', $user ) ) { |
| 986 |
|
$moveTitle = SpecialPage::getTitleFor( 'Movepage', $title->getPrefixedDBkey() ); |