completed data license functions, picture fixes, public profile link
+ menu option "my profile/public profile" - enlargit log pics - short date format for some locales - data license constants * dont display license-disabled log pics * delete log pics on declined license instead replacing + delete waypoint descriptions on declined license * no cache desc replacement message if it was empty + license-content-disable-function for old-disabled users + script to process all old-deleted users due to incompatible license + settings for license admin functions and for license disclaimer - fixed CC license link on english tos page * update caches.last_modified with changes of additional waypoints + XML interface license disclaimer
This commit is contained in:
@ -45,10 +45,18 @@ class translate
|
||||
if (($lang === null) || ($lang == $opt['template']['locale']))
|
||||
$trans = gettext($search);
|
||||
else
|
||||
$trans = sql_value("SELECT IFNULL(`sys_trans_text`.`text`, '&3')
|
||||
FROM `sys_trans`
|
||||
LEFT JOIN `sys_trans_text` ON `sys_trans`.`id`=`sys_trans_text`.`trans_id` AND `sys_trans_text`.`lang`='&1'
|
||||
WHERE `sys_trans`.`text`='&2' LIMIT 1", '', $lang, $search, $message);
|
||||
{
|
||||
// do not use sql_value(), as this is also used from lib1
|
||||
$rs = sql("SELECT IFNULL(`sys_trans_text`.`text`, '&3')
|
||||
FROM `sys_trans`
|
||||
LEFT JOIN `sys_trans_text` ON `sys_trans`.`id`=`sys_trans_text`.`trans_id` AND `sys_trans_text`.`lang`='&1'
|
||||
WHERE `sys_trans`.`text`='&2' LIMIT 1", $lang, $search, $message);
|
||||
if ($r = sql_fetch_array($rs))
|
||||
$trans = $r[0];
|
||||
else
|
||||
$trans = '';
|
||||
sql_free_result($rs);
|
||||
}
|
||||
|
||||
// safe w/o mb because asc(%) < 128
|
||||
if (strpos($trans, "%")>=0)
|
||||
|
Reference in New Issue
Block a user