mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
Also autoload common lang files when requested
This commit is contained in:
parent
61e1108afb
commit
56f4bdaa09
1 changed files with 5 additions and 1 deletions
|
|
@ -63,7 +63,11 @@ class Lang
|
|||
return true;
|
||||
}
|
||||
|
||||
if (file_exists(RX_BASEDIR . "plugins/$name/lang"))
|
||||
if ($name === 'common')
|
||||
{
|
||||
$this->loadDirectory(RX_BASEDIR . 'common/lang', 'common');
|
||||
}
|
||||
elseif (file_exists(RX_BASEDIR . "plugins/$name/lang"))
|
||||
{
|
||||
$this->loadDirectory(RX_BASEDIR . "plugins/$name/lang", $name);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue