mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
Improved detection of deprecated functions/methods and display in DEBUG mode: deprecated.
This commit is contained in:
@@ -373,6 +373,8 @@ class language{
|
||||
*/
|
||||
function translate($lan, $array= array())
|
||||
{
|
||||
trigger_error('<b>'.__METHOD__.' is deprecated.</b> Use $tp->lanVars() instead.', E_USER_DEPRECATED); // NO LAN
|
||||
|
||||
foreach($array as $k=>$v)
|
||||
{
|
||||
$search[] = "[".$k."]";
|
||||
|
Reference in New Issue
Block a user