diff options
author | Andreas Fischer <bantu@phpbb.com> | 2011-03-07 00:23:49 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2011-03-07 00:41:24 +0100 |
commit | ac9019068202efde7c532462ca5fce8523956db7 (patch) | |
tree | 019530eeb450c69f10cd043e3d770cd8c3d3dc25 /phpBB/includes/functions_user.php | |
parent | 0f16fd3519151cbd309cfa5f7aec0d45bd7346e9 (diff) | |
download | forums-ac9019068202efde7c532462ca5fce8523956db7.tar forums-ac9019068202efde7c532462ca5fce8523956db7.tar.gz forums-ac9019068202efde7c532462ca5fce8523956db7.tar.bz2 forums-ac9019068202efde7c532462ca5fce8523956db7.tar.xz forums-ac9019068202efde7c532462ca5fce8523956db7.zip |
[ticket/9970] Rename validate_language() to validate_language_iso_name().
PHPBB3-9970
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r-- | phpBB/includes/functions_user.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index 9b0175694d..8a204995aa 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -1426,19 +1426,19 @@ function validate_match($string, $optional = false, $match = '') * * Tests whether a language name is valid and installed * -* @param string $lang The language string to test +* @param string $lang_iso The language string to test * -* @return bool|string Either false if validation succeeded or -* a string which will be used as the error message -* (with the variable name appended) +* @return bool|string Either false if validation succeeded or +* a string which will be used as the error message +* (with the variable name appended) */ -function validate_language($lang) +function validate_language_iso_name($lang_iso) { global $db; $sql = 'SELECT lang_id FROM ' . LANG_TABLE . " - WHERE lang_iso = '" . $db->sql_escape($lang) . "'"; + WHERE lang_iso = '" . $db->sql_escape($lang_iso) . "'"; $result = $db->sql_query($sql); $lang_id = (int) $db->sql_fetchfield('lang_id'); $db->sql_freeresult($result); |