X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiSetPageLanguage.php;h=84ab3ea98104de9f637fc04d1bbd3eaa09df3399;hb=8cd4986f24780107e1daff69dc27315e6dcc12e3;hp=54394a57d9fa13fa1ee8aac984edc63c49c76e13;hpb=7f2177324363fdbef68f18cffb0a28d42f892d70;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiSetPageLanguage.php b/includes/api/ApiSetPageLanguage.php index 54394a57d9..84ab3ea981 100644 --- a/includes/api/ApiSetPageLanguage.php +++ b/includes/api/ApiSetPageLanguage.php @@ -1,9 +1,5 @@ " * * This program is free software; you can redistribute it and/or modify @@ -84,7 +80,7 @@ class ApiSetPageLanguage extends ApiBase { $this, $titleObj, $params['lang'], - $params['reason'] === null ? '' : $params['reason'], + $params['reason'] ?? '', $params['tags'] ?: [] );