Skip to content

Commit

Permalink
PHPDoc: lang_get() can also return an array
Browse files Browse the repository at this point in the history
When retrieving 'MANTIS_ERROR'.
  • Loading branch information
dregad authored and vboctor committed Feb 7, 2018
1 parent bcb801b commit 62471c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/lang_api.php
Expand Up @@ -263,9 +263,10 @@ function lang_get_current() {
* This function will return one of (in order of preference):
* 1. The string in the current user's preferred language (if defined)
* 2. The string in English
* Note: when $p_string is 'MANTIS_ERROR', the return value is an array of error messages.
* @param string $p_string The language string to retrieve.
* @param string $p_lang The language name.
* @return string
* @return string|array
*/
function lang_get( $p_string, $p_lang = null ) {
global $g_lang_strings;
Expand Down

0 comments on commit 62471c7

Please sign in to comment.