Avatar

more_smilies_label - is not used (Bugs)

by Micha ⌂, Saturday, June 15, 2013, 10:35 (3940 days ago)

Hi Alex,

there is a problem with the lang['more_smilies_label']-label. This one is not used to label the button - see screenshot. I'm wondering, because this problem is only related to this button and not to other bb-code buttons. I take a look into js_defaults.inc.php and make a modification. Instead of

$smarty->configLoad($settings['language_file'], 'general');

I'm adding the if-else from the index.php:

if(isset($_SESSION[$settings['session_prefix'].'usersettings']['language']) && file_exists(LANG_DIR.'/'.$_SESSION[$settings['session_prefix'].'usersettings']['language']))
  $language_file = $_SESSION[$settings['session_prefix'].'usersettings']['language'];
else
  $language_file = $settings['language_file'];
 
//$smarty->configLoad($settings['language_file'], 'general');
$smarty->configLoad($language_file, 'general');

Now, it works but, is it in any case the right way?

kind reagds
Micha

--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences


Complete thread:

 RSS Feed of thread