Skip to content

Commit 2eff275

Browse files
committed
add user guide change for core/security
Signed-off-by: Hongyi Zhang <hongyi73.zhang@gmail.com>
1 parent 947efb2 commit 2eff275

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

system/core/Lang.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ public function __construct()
8282
* @param bool $return Whether to return the loaded array of translations
8383
* @param bool $add_suffix Whether to add suffix to $langfile
8484
* @param string $alt_path Alternative path to look for the language file
85-
*
8685
* @return void|string[] Array containing translations, if $return is set to TRUE
86+
* @throws RuntimeException when unable to load the language file
8787
*/
8888
public function load($langfile, $idiom = '', $return = FALSE, $add_suffix = TRUE, $alt_path = '')
8989
{

user_guide_src/source/libraries/language.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ Class Reference
196196
:param string $alt_path: An alternative path to look in for the language file
197197
:returns: Array of language lines if $return is set to TRUE, otherwise void
198198
:rtype: mixed
199+
:throws: RuntimeException when unable to load the language file
199200

200201
Loads a language file.
201202

@@ -207,4 +208,4 @@ Class Reference
207208
:rtype: string
208209

209210
Fetches a single translation line from the already loaded language files,
210-
based on the line's name.
211+
based on the line's name.

0 commit comments

Comments
 (0)