mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-01-31 08:54:17 +00:00
fix default mime
This commit is contained in:
parent
acafdfcf3a
commit
b83ad6cc3a
@ -30,7 +30,7 @@ if (API_ENABLED) {
|
||||
|
||||
|
||||
// Filter request data
|
||||
$type = !empty($_GET['type']) ? Filter::url($_GET['type']) : 'html';
|
||||
$type = !empty($_GET['type']) ? Filter::url($_GET['type']) : 'text';
|
||||
$mode = !empty($_GET['mode']) ? Filter::url($_GET['mode']) : 'default';
|
||||
$query = !empty($_GET['query']) ? Filter::url($_GET['query']) : '';
|
||||
$page = !empty($_GET['page']) ? (int) $_GET['page'] : 1;
|
||||
|
@ -16,7 +16,7 @@ $sphinx = new SphinxQL(SPHINX_HOST, SPHINX_PORT);
|
||||
$db = new MySQL(DB_HOST, DB_PORT, DB_NAME, DB_USERNAME, DB_PASSWORD);
|
||||
|
||||
// Filter request data
|
||||
$t = !empty($_GET['t']) ? Filter::url($_GET['t']) : 'html';
|
||||
$t = !empty($_GET['t']) ? Filter::url($_GET['t']) : 'text';
|
||||
$m = !empty($_GET['m']) ? Filter::url($_GET['m']) : 'default';
|
||||
$q = !empty($_GET['q']) ? Filter::url($_GET['q']) : '';
|
||||
$p = !empty($_GET['p']) ? (int) $_GET['p'] : 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user