mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
Issue #6 Language-file optimization.
This commit is contained in:
@@ -665,4 +665,27 @@ class language{
|
||||
return $this->list;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public function bcDefs()
|
||||
{
|
||||
|
||||
$bcList = array(
|
||||
'LAN_180' => 'LAN_SEARCH'
|
||||
|
||||
);
|
||||
|
||||
|
||||
foreach($bcList as $old => $new)
|
||||
{
|
||||
if(!defined($old) && defined($new))
|
||||
{
|
||||
define($old, constant($new));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user