Special:CiteThisPage only works on existing pages

This avoids the error message citethispage-badrevision
with "revision 0" text

Change-Id: Ifab27624d70d65f07c2eff11c883701e1192c26d
This commit is contained in:
Umherirrender 2021-03-06 21:51:09 +01:00
parent 059df096c4
commit ab31a3741e

View file

@ -48,6 +48,7 @@ class SpecialCiteThisPage extends FormSpecialPage {
'page' => [
'name' => 'page',
'type' => 'title',
'exists' => true,
'default' => $this->par ?? '',
'label-message' => 'citethispage-change-target'
]