From: skaill <sk...@ro...> - 2004-09-09 09:25:52
|
I think the include for LanguageSetup.php in session.inc needs to be = moved from the bottom of the script to the top. Same reason as $title. = session.inc calls _() but it will not be defined when gettext is not = built in. Steve |
From: Phil D. <we...@pa...> - 2004-09-09 10:29:00
|
That surprises me since _() is defined in session.inc I would have thought it would be ok in the same script ... Phil On Thu, 2004-09-09 at 21:26, skaill wrote: > I think the include for LanguageSetup.php in session.inc needs to be > moved from the bottom of the script to the top. Same reason as > $title. session.inc calls _() but it will not be defined when gettext > is not built in. > > Steve |
From: skaill <sk...@ro...> - 2004-09-09 10:52:06
|
Oh, I could be incorrect. I'm thinking linearly with the include at the bottom after the session code. It depends if php predeclares its functions and can hence see them ahead of time. Possibly someone else readily knows so I can be lazy and not test to find out ;) Steve ----- Original Message ----- From: "Phil Daintree" <we...@pa...> To: <web...@li...> Sent: Thursday, September 09, 2004 6:29 AM Subject: Re: [Web-erp-developers] Multilanguage - session.inc > That surprises me since _() is defined in session.inc I would have > thought it would be ok in the same script ... > > Phil > > On Thu, 2004-09-09 at 21:26, skaill wrote: > > I think the include for LanguageSetup.php in session.inc needs to be > > moved from the bottom of the script to the top. Same reason as > > $title. session.inc calls _() but it will not be defined when gettext > > is not built in. > > > > Steve > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers |
From: Daintrees <p.d...@pa...> - 2004-09-09 20:02:51
|
Any functions defined in the same script are available to that script irrespective of their position in that script. This should be ok. P ----- Original Message ----- From: "skaill" <sk...@ro...> To: <web...@li...> Sent: Thursday, September 09, 2004 10:52 PM Subject: Re: [Web-erp-developers] Multilanguage - session.inc > Oh, I could be incorrect. I'm thinking linearly with the include at the > bottom after the session code. It depends if php predeclares its functions > and can hence see them ahead of time. Possibly someone else readily knows > so I can be lazy and not test to find out ;) > > Steve > > ----- Original Message ----- > From: "Phil Daintree" <we...@pa...> > To: <web...@li...> > Sent: Thursday, September 09, 2004 6:29 AM > Subject: Re: [Web-erp-developers] Multilanguage - session.inc > > > > That surprises me since _() is defined in session.inc I would have > > thought it would be ok in the same script ... > > > > Phil > > > > On Thu, 2004-09-09 at 21:26, skaill wrote: > > > I think the include for LanguageSetup.php in session.inc needs to be > > > moved from the bottom of the script to the top. Same reason as > > > $title. session.inc calls _() but it will not be defined when gettext > > > is not built in. > > > > > > Steve > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by BEA Weblogic Workshop > > FREE Java Enterprise J2EE developer tools! > > Get your free copy of BEA WebLogic Workshop 8.1 today. > > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > > _______________________________________________ > > Web-erp-developers mailing list > > Web...@li... > > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > |