I have installed a fresh version of ZC 1.5.3. using the default products. (Did not require a database upgrade as I am trying to verify functionality of some code previously written.)
Alongside, I have added files that do not require any type of a merge with existing code, but do interface with the database requiring the addition of menu options in the admin panel.
I had previously used this code on ZC 1.5.0 and 1.5.1. Long and short of it is this, the code includes application_top to bring in and initialize ZC default information and then continues through operation written into the page being displayed (combinations of php and html code) until the bottom where application_bottom is included.
As part of this code, I include another file that has functions that reference the global variable $languages; however, it appears that $languages is not defined (at this point) when I am using ZC 1.5.3. I haven't gone back to test the same code against the previous versions; however, and as many posters will state, I know that it used to work with either of those versions. I was able to overcome the issue by placing:
Code:
$languages = zen_get_languages();
before the include of the other file; however, I am trying to find from anyone else in the know if there in fact has been a change in the initialization of the code so that I may in the future need to consider the existence of the variable $languages or is it just that I have misremembered something?
I did try to do a search for cases where $languages was assigned and found a few, but many more instances of it being used in some regards... At the time, the number of occurrences was a bit over whelming, but I was glad to stumble across the zen function to assign it. I know there is a new plugin that will allow the admin panel to have a different language than the default store language, etc... and I know there have been some other gross changes, but thought I would share my "trouble" with someone else, and maybe further some programmer's knowledge.
Bookmarks