Skip to content

Commit 99943b4

Browse files
committed
Compat: Default to PS3 Game type instead of All
1 parent a0b070b commit 99943b4

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

classes/class.Compat.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,15 +198,15 @@ public static function printTypeSort() : void
198198
$s_query = $http_query->get_except(array("status", "type", "3d"));
199199

200200
// All statuses
201-
$html_a = new HTMLA("?{$s_query}", "Show applications from all types", highlightText("All", $get['type'] === 0));
201+
$html_a = new HTMLA("?{$s_query}type=0", "Show applications from all types", highlightText("All", $get['type'] === 0));
202202
$html_a->print();
203203

204204
echo "• ";
205205

206206
if (!empty($s_query))
207207
$s_query .= "&";
208208

209-
$html_a = new HTMLA("?{$s_query}type=1", "Only show PS3 Games", highlightText("PS3 Games", $get['type'] === 1));
209+
$html_a = new HTMLA("?{$s_query}", "Only show PS3 Games", highlightText("PS3 Games", $get['type'] === 1));
210210
$html_a->print();
211211

212212
echo "• ";

functions.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function validateGet() : array
177177
// $get['m'] = '';
178178
// $get["move"] = 0;
179179
$get["3D"] = 0;
180-
$get["type"] = 0;
180+
$get["type"] = 1;
181181
// $get["network"] = 0;
182182

183183
// API version
@@ -266,8 +266,13 @@ function validateGet() : array
266266
}
267267

268268
// Game type
269-
if (isset($_GET['type']) && is_string($_GET['type']) && $_GET['type'] != 0)
269+
if (isset($_GET['type']) && is_string($_GET['type']))
270270
{
271+
// All
272+
if ((int) $_GET['type'] === 0)
273+
{
274+
$get['type'] = 0;
275+
}
271276
// PS3 Game
272277
if ((int) $_GET['type'] === 1)
273278
{

0 commit comments

Comments
 (0)