$c->update('WHERE book_id=\'' . $this->con->escape($book_id) . '\'');
if ($json_chapters && $json_chapters != '[]') {
- if(count($res)==1){
- if($res[0]['label']=='' && $res[0]['page']==''){
+ if (count($res) == 1) {
+ if ($res[0]['label'] == '' && $res[0]['page'] == '') {
return;
}
}
$flex->addBitmap(cubeMedia::getFlagFile($flag), 'flag_' . $flag);
$vuFlags[$flag] = true;
}
- $n = cubeText::ucfirst($iso[$mlang]);
+ $ll = explode('-', $mlang);
+ $n = cubeText::ucfirst($iso[$ll[0]]);
$langNames[$mlang] = $n;
$cn = cubeCountry::getCountryName($flag, $mlang);
$countryNames[$mlang . '_' . $flag] = $cn;
$l = explode(',', $l1);
$flag = $l[1];
+ $ll = explode('-', $l[0]);
+
$this->copy(cubeMedia::getFlagFile($flag), $flagsDir . '/' . $flag . '.png');
$l[3] = cubeText::ucfirst($iso[$l[0]]);
- $l[4] = cubeCountry::getCountryName($flag, $l[0]);
+ $l[4] = cubeCountry::getCountryName($flag, $ll[0]);
$m[] = implode(',', $l);
}