Skip to content

Commit 8a6c75b

Browse files
Update getGlobals.php
1 parent 3dae6eb commit 8a6c75b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

php/getGlobals.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
header("Cache-Control: no-cache, no-stire, must-revalidate, max-age=0");
33
if (isset($_GET["user"]) && $_GET["user"] === "Рейму")
4-
header("Content-type: text/plain; charset=utf-8");
4+
header("Content-type: text/plain; charset=utf-8"); // quick option special for MBH
55
else
66
header("Content-type: application/json; charset=utf-8");
77
session_name('SWViewer');
@@ -31,7 +31,7 @@
3131
getCommonsUsers();
3232

3333
if (isset($_GET["user"]) && $_GET["user"] === "Рейму") {
34-
echo implode("|", $usersList); // quick option special for MBH; sic, plain text while json content type
34+
echo implode("|", $usersList); // quick option special for MBH
3535
} else {
3636
$explain = "commons-sysop|commons-filemover|commons-image-reviewer|global-ipblock-exempt|oathauth-tester|apihighlimits-requestor|captcha-exempt|wmf-researcher|wmf-ops-monitoring|sysadmin|recursive-export|vrt-permissions|new-wikis-importer|global-interface-editor|global-flow-create|global-deleter|global-bot|staff|steward|global-sysop|global-rollbacker|abusefilter-helper|founder|ombuds";
3737
echo json_encode(['meta' => ['count' => count($usersList), 'explain' => $explain], 'users' => $usersList]);

0 commit comments

Comments
 (0)