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 "Add support for PHP7 random_bytes in favor of mcrypt_create_iv"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialComparePages.php
diff --git
a/includes/specials/SpecialComparePages.php
b/includes/specials/SpecialComparePages.php
index
50a48c3
..
35cc6b8
100644
(file)
--- a/
includes/specials/SpecialComparePages.php
+++ b/
includes/specials/SpecialComparePages.php
@@
-49,58
+49,58
@@
class SpecialComparePages extends SpecialPage {
public function execute( $par ) {
$this->setHeaders();
$this->outputHeader();
public function execute( $par ) {
$this->setHeaders();
$this->outputHeader();
+ $this->getOutput()->addModuleStyles( 'mediawiki.special.comparepages.styles' );
- # Form (.mw-searchInput enables suggestions)
- $form = HTMLForm::factory( 'ooui', array(
- 'Page1' => array(
+ $form = HTMLForm::factory( 'ooui', [
+ 'Page1' => [
'type' => 'title',
'name' => 'page1',
'label-message' => 'compare-page1',
'size' => '40',
'section' => 'page1',
'type' => 'title',
'name' => 'page1',
'label-message' => 'compare-page1',
'size' => '40',
'section' => 'page1',
- 'validation-callback' =>
array( $this, 'checkExistingTitle' )
,
-
)
,
- 'Revision1' =>
array(
+ 'validation-callback' =>
[ $this, 'checkExistingTitle' ]
,
+
]
,
+ 'Revision1' =>
[
'type' => 'int',
'name' => 'rev1',
'label-message' => 'compare-rev1',
'size' => '8',
'section' => 'page1',
'type' => 'int',
'name' => 'rev1',
'label-message' => 'compare-rev1',
'size' => '8',
'section' => 'page1',
- 'validation-callback' =>
array( $this, 'checkExistingRevision' )
,
-
)
,
- 'Page2' =>
array(
+ 'validation-callback' =>
[ $this, 'checkExistingRevision' ]
,
+
]
,
+ 'Page2' =>
[
'type' => 'title',
'name' => 'page2',
'label-message' => 'compare-page2',
'size' => '40',
'section' => 'page2',
'type' => 'title',
'name' => 'page2',
'label-message' => 'compare-page2',
'size' => '40',
'section' => 'page2',
- 'validation-callback' =>
array( $this, 'checkExistingTitle' )
,
-
)
,
- 'Revision2' =>
array(
+ 'validation-callback' =>
[ $this, 'checkExistingTitle' ]
,
+
]
,
+ 'Revision2' =>
[
'type' => 'int',
'name' => 'rev2',
'label-message' => 'compare-rev2',
'size' => '8',
'section' => 'page2',
'type' => 'int',
'name' => 'rev2',
'label-message' => 'compare-rev2',
'size' => '8',
'section' => 'page2',
- 'validation-callback' =>
array( $this, 'checkExistingRevision' )
,
-
)
,
- 'Action' =>
array(
+ 'validation-callback' =>
[ $this, 'checkExistingRevision' ]
,
+
]
,
+ 'Action' =>
[
'type' => 'hidden',
'name' => 'action',
'type' => 'hidden',
'name' => 'action',
-
)
,
- 'Diffonly' =>
array(
+
]
,
+ 'Diffonly' =>
[
'type' => 'hidden',
'name' => 'diffonly',
'type' => 'hidden',
'name' => 'diffonly',
-
)
,
- 'Unhide' =>
array(
+
]
,
+ 'Unhide' =>
[
'type' => 'hidden',
'name' => 'unhide',
'type' => 'hidden',
'name' => 'unhide',
-
)
,
-
)
, $this->getContext(), 'compare' );
+
]
,
+
]
, $this->getContext(), 'compare' );
$form->setSubmitTextMsg( 'compare-submit' );
$form->suppressReset();
$form->setMethod( 'get' );
$form->setSubmitTextMsg( 'compare-submit' );
$form->suppressReset();
$form->setMethod( 'get' );
- $form->setSubmitCallback(
array( __CLASS__, 'showDiff' )
);
+ $form->setSubmitCallback(
[ __CLASS__, 'showDiff' ]
);
$form->loadData();
$form->displayForm( '' );
$form->loadData();
$form->displayForm( '' );