Hello,
I think that your line 1165 would fit in around line 1070 on my fresh download of EP 2.6. Line 930 on mine is
function ep_create_filelayout($dltype){
which starts a function that continues through line 1151. The froogle case is on line 1065. On my line 303, I have the require for application_top.php. I'm guessing that your code works similarly. However, if that is so, then $currencies is being defined outside the function's scope. Unlike C (et.al.), PHP does not automatically allow access to global variables inside of other scopes. Thus, I suspect that it thinks that the $currencies variable that calls the is a *different* variable than ithe one defined by the requires.
There are two ways that I can see to fix this: one, move the initial declaration of $currencies into the function, which would be the preferred place to have it if you do not use it in other functions; two, if you are using it in other functions, add a
global $currencies;
at the beginning of the function. Of course, maybe I'm misreading your code. Let us know what you find out.
Thanks,
Matt