I may have found the source of the problem in the admin file. I noticed this peculiarity... $languages changes between the build langs code (lines 38-44 of the admin file) and when the drop down languages menu is created in line 166. I believe the problem is due to header.php being called. My admin header file sets up $languages for its own use. So, i am thinking if the variable name is changed in your files (i.e. to $languages_<something else>), perhaps it will start working. I was thinking of this a few days ago that maybe the variable names being the same are causing a conflict and something else you might want to change in a future version since $languages is used globally.
I'm going to try my hand at changing the variable name for $languages and see what happens.
Here is what my $languages var looks like just before the admin file tries to draw the admin drop down (note: this is actually one line of output, but I used CR's to make it easier to read on the forum):
Array ( [0] => Array ( [id] => 1 [name] => English (USA) [code] => en [image] => icon.gif [directory] => english ) [1] => Array ( [id] => 3 [name] => Español [code] => es [image] => mexico_icon.gif [directory] => espanol ) [2] => Array ( [id] => 4 [name] => Français [code] => fr [image] => icon.gif [directory] => french ) [3] => Array ( [id] => 2 [name] => Deutsch [code] => de [image] => icon.gif [directory] => german ) [4] => Array ( [id] => 9 [name] => Canada (English) [code] => ca [image] => icon_ca.gif [directory] => english_ca ) [5] => Array ( [id] => 8 [name] => Australia [code] => au [image] => icon_au.gif [directory] => english_au ) [6] => Array ( [id] => 11 [name] => New Zealand [code] => nz [image] => icon_nz.gif [directory] => english_nz ) [7] => Array ( [id] => 7 [name] => United Kingdom [code] => uk [image] => icon_uk.gif [directory] => english_uk ) )
As you can see, the 'id' field in the array changed from being equal to the languages 'code' to the 'languages_id' in the array. I'm sure this has got to be mucking things up somehow.
David
Edited by Richard Cranium, 25 November 2009 - 07:58 PM.










