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
Switch some HTMLForms in special pages to OOUI
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialUpload.php
diff --git
a/includes/specials/SpecialUpload.php
b/includes/specials/SpecialUpload.php
index
3f1ea42
..
6b0bf41
100644
(file)
--- a/
includes/specials/SpecialUpload.php
+++ b/
includes/specials/SpecialUpload.php
@@
-160,7
+160,7
@@
class SpecialUpload extends SpecialPage {
throw new ErrorPageError( 'uploaddisabled', 'uploaddisabledtext' );
}
throw new ErrorPageError( 'uploaddisabled', 'uploaddisabledtext' );
}
- $this->
getOutput()->
addHelpLink( 'Help:Managing files' );
+ $this->addHelpLink( 'Help:Managing files' );
# Check permissions
$user = $this->getUser();
# Check permissions
$user = $this->getUser();
@@
-817,8
+817,8
@@
class UploadForm extends HTMLForm {
# Add a link to edit MediaWik:Licenses
if ( $this->getUser()->isAllowed( 'editinterface' ) ) {
# Add a link to edit MediaWik:Licenses
if ( $this->getUser()->isAllowed( 'editinterface' ) ) {
- $licensesLink = Linker::link(
-
Title::makeTitle( NS_MEDIAWIKI, 'Licenses'
),
+ $licensesLink = Linker::link
Known
(
+
$this->msg( 'licenses' )->inContentLanguage()->getTitle(
),
$this->msg( 'licenses-edit' )->escaped(),
array(),
array( 'action' => 'edit' )
$this->msg( 'licenses-edit' )->escaped(),
array(),
array( 'action' => 'edit' )