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
Deprecate setting Parser::mTitle to null
[lhc/web/wiklou.git]
/
includes
/
ProtectionForm.php
diff --git
a/includes/ProtectionForm.php
b/includes/ProtectionForm.php
index
8b5d995
..
3e639b9
100644
(file)
--- a/
includes/ProtectionForm.php
+++ b/
includes/ProtectionForm.php
@@
-58,6
+58,18
@@
class ProtectionForm {
/** @var array Map of action to the expiry time of the existing protection */
protected $mExistingExpiry = [];
/** @var array Map of action to the expiry time of the existing protection */
protected $mExistingExpiry = [];
+ /** @var Article */
+ protected $mArticle;
+
+ /** @var Title */
+ protected $mTitle;
+
+ /** @var bool */
+ protected $disabled;
+
+ /** @var array */
+ protected $disabledAttrib;
+
/** @var IContextSource */
private $mContext;
/** @var IContextSource */
private $mContext;
@@
-78,7
+90,7
@@
class ProtectionForm {
if ( wfReadOnly() ) {
$this->mPermErrors[] = [ 'readonlytext', wfReadOnlyReason() ];
}
if ( wfReadOnly() ) {
$this->mPermErrors[] = [ 'readonlytext', wfReadOnlyReason() ];
}
- $this->disabled = $this->mPermErrors != [];
+ $this->disabled = $this->mPermErrors !=
=
[];
$this->disabledAttrib = $this->disabled
? [ 'disabled' => 'disabled' ]
: [];
$this->disabledAttrib = $this->disabled
? [ 'disabled' => 'disabled' ]
: [];
@@
-321,7
+333,9
@@
class ProtectionForm {
);
if ( !$status->isOK() ) {
);
if ( !$status->isOK() ) {
- $this->show( $out->parseInlineAsInterface( $status->getWikiText() ) );
+ $this->show( $out->parseInlineAsInterface(
+ $status->getWikiText( false, false, $this->mContext->getLanguage() )
+ ) );
return false;
}
return false;
}