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 "selenium: Remove deprecated legacy methods"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialComparePages.php
diff --git
a/includes/specials/SpecialComparePages.php
b/includes/specials/SpecialComparePages.php
index
28f04fa
..
6d9dc0f
100644
(file)
--- a/
includes/specials/SpecialComparePages.php
+++ b/
includes/specials/SpecialComparePages.php
@@
-43,13
+43,13
@@
class SpecialComparePages extends SpecialPage {
/**
* Show a form for filtering namespace and username
*
/**
* Show a form for filtering namespace and username
*
- * @param string $par
- * @return string
+ * @param string|null $par
*/
public function execute( $par ) {
$this->setHeaders();
$this->outputHeader();
$this->getOutput()->addModuleStyles( 'mediawiki.special' );
*/
public function execute( $par ) {
$this->setHeaders();
$this->outputHeader();
$this->getOutput()->addModuleStyles( 'mediawiki.special' );
+ $this->addHelpLink( 'Help:Diff' );
$form = HTMLForm::factory( 'ooui', [
'Page1' => [
$form = HTMLForm::factory( 'ooui', [
'Page1' => [
@@
-59,6
+59,7
@@
class SpecialComparePages extends SpecialPage {
'size' => '40',
'section' => 'page1',
'validation-callback' => [ $this, 'checkExistingTitle' ],
'size' => '40',
'section' => 'page1',
'validation-callback' => [ $this, 'checkExistingTitle' ],
+ 'required' => false,
],
'Revision1' => [
'type' => 'int',
],
'Revision1' => [
'type' => 'int',
@@
-75,6
+76,7
@@
class SpecialComparePages extends SpecialPage {
'size' => '40',
'section' => 'page2',
'validation-callback' => [ $this, 'checkExistingTitle' ],
'size' => '40',
'section' => 'page2',
'validation-callback' => [ $this, 'checkExistingTitle' ],
+ 'required' => false,
],
'Revision2' => [
'type' => 'int',
],
'Revision2' => [
'type' => 'int',