use MediaWiki\MediaWikiServices;
+// Use superglobals, but since it's deprecated, it's not worth fixing
+// phpcs:disable MediaWiki.Usage.SuperGlobalsUsage.SuperGlobals
+
/**
* @defgroup Ajax Ajax
*/
switch ( $this->mode ) {
case 'get':
- $this->func_name = isset( $_GET["rs"] ) ? $_GET["rs"] : '';
+ $this->func_name = $_GET["rs"] ?? '';
if ( !empty( $_GET["rsargs"] ) ) {
$this->args = $_GET["rsargs"];
} else {
}
break;
case 'post':
- $this->func_name = isset( $_POST["rs"] ) ? $_POST["rs"] : '';
+ $this->func_name = $_POST["rs"] ?? '';
if ( !empty( $_POST["rsargs"] ) ) {
$this->args = $_POST["rsargs"];
} else {