From 9f2b1c20fd8bf6d4a508436ba460e8d3f504846a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mat=C4=9Bj=20Such=C3=A1nek?= Date: Sat, 9 Jun 2018 14:05:28 +0000 Subject: [PATCH] Do not require titles on Special:ComparePages By default, title fields are required, so the form cannot be submitted without them. However, here we need either the title or the revision id. Change-Id: Iedafec485851d7e91affb69a2c9c3fd40d31ded4 --- includes/specials/SpecialComparePages.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/specials/SpecialComparePages.php b/includes/specials/SpecialComparePages.php index 28f04faa29..d6fb10f6fd 100644 --- a/includes/specials/SpecialComparePages.php +++ b/includes/specials/SpecialComparePages.php @@ -59,6 +59,7 @@ class SpecialComparePages extends SpecialPage { 'size' => '40', 'section' => 'page1', 'validation-callback' => [ $this, 'checkExistingTitle' ], + 'required' => false, ], 'Revision1' => [ 'type' => 'int', @@ -75,6 +76,7 @@ class SpecialComparePages extends SpecialPage { 'size' => '40', 'section' => 'page2', 'validation-callback' => [ $this, 'checkExistingTitle' ], + 'required' => false, ], 'Revision2' => [ 'type' => 'int', -- 2.20.1