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

Loading…
Cancel
Save