Browse Source

Default ehentai api to japanese language

Tenboro said to
spaghetti 7 years ago
parent
commit
b20a12ccd4
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      sections/ajax/doujin.php

+ 3
- 3
sections/ajax/doujin.php View File

@@ -76,7 +76,7 @@ if ($Cache->get_value('doujin_json_'.$gid)) {
76 76
     }
77 77
   }
78 78
 
79
-  $json_str = array(
79
+  $json_str = [
80 80
     'id'          => $gid,
81 81
     'title'       => html_entity_decode($json['title'], ENT_QUOTES),
82 82
     'title_jp'    => html_entity_decode($json['title_jpn'], ENT_QUOTES),
@@ -85,11 +85,11 @@ if ($Cache->get_value('doujin_json_'.$gid)) {
85 85
     'censored'    => $censored,
86 86
     'year'        => NULL,
87 87
     'tags'        => $tags,
88
-    'lang'        => $lang,
88
+    'lang'        => $lang??'Japanese',
89 89
     'pages'       => $json['filecount'],
90 90
     'description' => '',
91 91
     'cover'       => $cover
92
-  );
92
+  ];
93 93
 
94 94
   $Cache->cache_value('doujin_json_'.$gid, $json_str, 86400);
95 95
 

Loading…
Cancel
Save