File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -417,15 +417,20 @@ public static function printTable() : void
417417 $ html_img_media = new HTMLImg ("compat-icon-media " , $ a_media [$ game ->get_media_id ()]["icon " ]);
418418 $ html_img_media ->set_title ($ a_media [$ game ->get_media_id ()]["name " ]);
419419
420+ $ extra = $ http_query ->get_except (array ("media " ));
421+
420422 // Allow for filter resetting by clicking the icon again
421423 if (isset ($ get ['t ' ]) && $ get ['t ' ] === strtolower ($ game ->get_media_id ()))
422424 {
423- $ html_a_media = new HTMLA ("? " , $ a_media [$ game ->get_media_id ()]["name " ], $ html_img_media ->to_string ());
425+ $ html_a_media = new HTMLA ("? { $ extra } " , $ a_media [$ game ->get_media_id ()]["name " ], $ html_img_media ->to_string ());
424426 }
425427 // Returns clickable icon for type (media) search
426428 else
427429 {
428- $ html_a_media = new HTMLA ("?t= " .strtolower ($ game ->get_media_id ()), $ a_media [$ game ->get_media_id ()]["name " ], $ html_img_media ->to_string ());
430+ if (!empty ($ extra ))
431+ $ extra .= '& ' ;
432+
433+ $ html_a_media = new HTMLA ("? {$ extra }t= " .strtolower ($ game ->get_media_id ()), $ a_media [$ game ->get_media_id ()]["name " ], $ html_img_media ->to_string ());
429434 }
430435
431436
You can’t perform that action at this time.
0 commit comments