mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Be more permissive about null values passed to lang() and Context::getLang()
This commit is contained in:
parent
14449dff9d
commit
6e2bab02cc
2 changed files with 4 additions and 4 deletions
|
|
@ -856,7 +856,7 @@ class Context
|
|||
$GLOBALS['lang']->loadDirectory(RX_BASEDIR . 'common/lang', 'common');
|
||||
}
|
||||
|
||||
return $GLOBALS['lang']->get($code);
|
||||
return $code ? $GLOBALS['lang']->get((string)$code) : (string)$code;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue