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
Merge "Replaced Linker::link() usage with LinkRenderer in some special pages"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialUnblock.php
diff --git
a/includes/specials/SpecialUnblock.php
b/includes/specials/SpecialUnblock.php
index
cc7a091
..
326a1fa
100644
(file)
--- a/
includes/specials/SpecialUnblock.php
+++ b/
includes/specials/SpecialUnblock.php
@@
-119,14
+119,14
@@
class SpecialUnblock extends SpecialPage {
$fields['Target']['type'] = 'hidden';
switch ( $type ) {
case Block::TYPE_IP:
$fields['Target']['type'] = 'hidden';
switch ( $type ) {
case Block::TYPE_IP:
- $fields['Name']['default'] =
Linker::linkKnown
(
+ $fields['Name']['default'] =
$this->getLinkRenderer()->makeKnownLink
(
SpecialPage::getTitleFor( 'Contributions', $target->getName() ),
$target->getName()
);
$fields['Name']['raw'] = true;
break;
case Block::TYPE_USER:
SpecialPage::getTitleFor( 'Contributions', $target->getName() ),
$target->getName()
);
$fields['Name']['raw'] = true;
break;
case Block::TYPE_USER:
- $fields['Name']['default'] =
Linker::l
ink(
+ $fields['Name']['default'] =
$this->getLinkRenderer()->makeL
ink(
$target->getUserPage(),
$target->getName()
);
$target->getUserPage(),
$target->getName()
);
@@
-238,7
+238,9
@@
class SpecialUnblock extends SpecialPage {
$logEntry->setTarget( $page );
$logEntry->setComment( $data['Reason'] );
$logEntry->setPerformer( $performer );
$logEntry->setTarget( $page );
$logEntry->setComment( $data['Reason'] );
$logEntry->setPerformer( $performer );
- $logEntry->setTags( $data['Tags'] );
+ if ( isset( $data['Tags'] ) ) {
+ $logEntry->setTags( $data['Tags'] );
+ }
$logId = $logEntry->insert();
$logEntry->publish( $logId );
$logId = $logEntry->insert();
$logEntry->publish( $logId );