[limb-issues] Created: (IN-6) Notice: undefined constant LIMB_LOCALE_INCLUDE_PATH in lmbI18NTools
Maxim Bazhenov (JIRA)
jira at limb-project.com
Sun Apr 8 18:53:03 MSD 2007
Notice: undefined constant LIMB_LOCALE_INCLUDE_PATH in lmbI18NTools
-------------------------------------------------------------------
Key: IN-6
URL: http://jira.limb-project.com/browse/IN-6
Project: I18N
Issue Type: Bug
Environment: URL: https://svn.limb-project.com/3.x/trunk/limb
Repository Root: https://svn.limb-project.com
Repository UUID: f70229e8-65b9-174f-aac5-fcbd71d6fc1d
Revision: 5567
Node Kind: directory
Schedule: normal
Last Changed Author: serega
Last Changed Rev: 5567
Last Changed Date: 2007-04-06 18:37:24 +0400
Microsoft Windows XP [Версия 5.1.2600]
PHP 5.2.0 (cli) (built: Nov 2 2006 11:57:36)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
with Xdebug v2.0.0RC1, Copyright (c) 2002, 2003, 2004, 2005, 2006, by Derick Rethans
Reporter: Maxim Bazhenov
Method lmbI18NTools::createLocaleObject() uses LIMB_LOCALE_INCLUDE_PATH constant
function createLocaleObject($locale)
{
$file = $this->toolkit->findFileAlias($locale . '.ini', LIMB_LOCALE_INCLUDE_PATH, 'i18n');
if(defined('LIMB_VAR_DIR'))
return new lmbLocale($locale, new lmbCachedIni($file, LIMB_VAR_DIR . '/locale/'));
else
return new lmbLocale($locale, new lmbIni($file));
}
The constant is defined in lmbLocale.class.php but since lmb_require() loads class implementation file after class first used, then in the first string of the createLocaleMethod() the file lmbLocale.class.php is not loaded yet and constant is not yet defined.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.limb-project.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the limb-issues
mailing list