|
[F] config_spiders.lang.php overrides $lang->language [C-sayakb]
|
|
04-24-2009, 04:32 PM
(This post was last modified: 04-24-2009 05:36 PM by frostschutz.)
Post: #1
|
|||
|
|||
|
[F] config_spiders.lang.php overrides $lang->language [C-sayakb]
The file config_spiders.lang.php contains this entry:
PHP Code: config_spiders.lang.php:$l['language'] = "Language"; This overrides the $lang->language value which is used by $lang->load() to determine the folder in which to look for language files: PHP Code: /**/So it seems because $lang internal variables like current language, path, etc. as well as the language strings themselves are stored in the same object, it must be ensured that these do not collide, i.e. there mustn't be an $l['path'] or $l['language'] (and probably others, haven't read all of the code) in any of the language files. This doesn't cause errors in normal operation because the config_spiders.lang.php happens to be the last language file being loaded during a request. However if a plugin tries to load another language file after that, it will fail with file not found errors, because $lang tries to load inc/languages/Language/..., Language being the value of $l['language'] of config_spiders.lang.php. I'll avoid this problem by moving my $lang->load() statements to more specific hooks in my plugin. Google SEO | Gravatar | Hooks | HTMLPurifier | Overview | Patches | PluginLibrary @ GitHub/frostschutz |
|||
|
« Next Oldest | Next Newest »
|
| Messages In This Thread |
|
[F] config_spiders.lang.php overrides $lang->language [C-sayakb] - frostschutz - 04-24-2009 04:32 PM
[F] config_spiders.lang.php overrides $lang->language - Ryan Gordon - 04-25-2009, 03:49 AM
|
User(s) browsing this thread: 1 Guest(s)
Search
Member List
Calendar
Help



