Cotonti / Open Source PHP Content Management FrameworkContent Management Framework

Forums / Cotonti / Support / Missing language string in admin.lang file

donP
#1 2009-08-05 20:25
Looking at the admin panel, I noticed that a language string has mississed. Right at the end of the first (core) Bulleted List you can notice an ofphan bullet...
In the admin.config.inc.php (I think) the code calls a non-exixting language string, resulting in a empty URL, like this:
<a href="admin.php?m=config&amp;n=edit&amp;o=core&amp;p=version"></a>
after Trash Can and Users...

What's like the missing string and where we have to put it?
in [color=#729FCF][b]BLUES[/b][/color] I trust
Kort
#2 2009-08-05 21:27
This has obviously smth to do with current version checks
Seditio.by - создание сайтов, разработка плагинов и тем для Котонти
donP
#3 2009-08-05 21:41
Can you spell the right $L['string'] and the right file where to put it?
in [color=#729FCF][b]BLUES[/b][/color] I trust
GHengeveld
#4 2009-08-05 22:39
What version of Cotonti are you using? I've tried to find this in 0.6.1 and 0.0.4 but I'm unable to find it.
donP
#5 2009-08-05 23:12
Genoa 0.6.1!

Try http://www.yoursite/admin.php?m=config and look at the Core bulleted list, after Users Bullet there's another Bullet (smoothly over the Users's one). Call your Page Source (Cntrl+U) from Firefox and you'll find
<a href="admin.php?m=config&amp;n=edit&amp;o=core&amp;p=version"></a>
in [color=#729FCF][b]BLUES[/b][/color] I trust
GHengeveld
#6 2009-08-06 00:15
Ok, found it. Likely this line wasn't supposed to be there, because it is only used for setting Cotonti's revision number (which you shouldn't be able to edit through the admin panel).

You can add the language string in system/lang/xx/admin.lang.php on line 35:
$L['core_version'] = &$L['Version'];

I'm guessing this config value will either be removed or modified so it won't show in the config panel.
donP
#7 2009-08-06 01:45
Otherwise... Thank you ;)
in [color=#729FCF][b]BLUES[/b][/color] I trust
Kilandor
#8 2009-08-06 11:28
Yea, I didn't know it loaded the configs in that list based on SQL, It was intended to be a hidden config...