Affects Version/s: 4.3.0alpha1
Fix Version/s: None
Message: Call to undefined function ezi18n()
#0 eZContentObjectTreeNode::makeObjectsArray() called at [/home/patrick.allaert/Projets/ezpublish/kernel/classes/ezcontentobjecttreenode.php:5108]
#1 eZContentObjectTreeNode::makeObjectsArray() called at [/home/patrick.allaert/Projets/ezpublish/kernel/classes/ezcontentobjecttreenode.php:3099]
#2 eZContentObjectTreeNode::fetch() called at [/home/patrick.allaert/Projets/ezpublish/kernel/content/treemenu.php:148]
#3 include(/home/patrick.allaert/Projets/ezpublish/kernel/content/treemenu.php) called at [/home/patrick.allaert/Projets/ezpublish/lib/ezutils/classes/ezprocess.php:66]
#4 eZProcess->runFile() called at [/home/patrick.allaert/Projets/ezpublish/lib/ezutils/classes/ezprocess.php:41]
#5 eZProcess::run() called at [/home/patrick.allaert/Projets/ezpublish/lib/ezutils/classes/ezmodule.php:1582]
#6 eZModule->run() called at [/home/patrick.allaert/Projets/ezpublish/index_treemenu.php:172]
A 'require_once' can be included at the top of kernel/classes/ezcontentobjecttreenode.php to solve this issue, however many files are using this function an don't require_once this file.
In the current situation, the ezi18n() function is used from 261 different files while only 45 are including it.
A better approach would be to have an eZi18n class to wrap this function so that the autoloader mechanism can do his job.