#11001 tips default en_gb
This commit is contained in:
parent
01ec39bde0
commit
fdfd55643e
|
@ -282,6 +282,13 @@ class TipsWindow
|
||||||
$tip['title'] = io_safe_output($tip['title']);
|
$tip['title'] = io_safe_output($tip['title']);
|
||||||
$tip['text'] = io_safe_output($tip['text']);
|
$tip['text'] = io_safe_output($tip['text']);
|
||||||
$tip['url'] = io_safe_output($tip['url']);
|
$tip['url'] = io_safe_output($tip['url']);
|
||||||
|
} else {
|
||||||
|
$language = 'en_GB';
|
||||||
|
$sql = 'SELECT id, title, text, url
|
||||||
|
FROM twelcome_tip
|
||||||
|
WHERE enable = "1" AND id_lang = "'.$language.'"';
|
||||||
|
$sql .= ' ORDER BY CASE WHEN id_lang = "'.$language.'" THEN id_lang END DESC, RAND()';
|
||||||
|
$tip = db_get_row_sql($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($return) {
|
if ($return) {
|
||||||
|
|
Loading…
Reference in New Issue