mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 06:51:08 +02:00
[ticket/11538] Rename phpbb_validate_colour to phpbb_validate_hex_colour
PHPBB3-11538
This commit is contained in:
@@ -423,7 +423,7 @@ class acp_groups
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Validate submitted colour value
|
// Validate submitted colour value
|
||||||
if ($colour_error = validate_data($submit_ary, array('colour' => array('colour'))))
|
if ($colour_error = validate_data($submit_ary, array('colour' => array('hex_colour'))))
|
||||||
{
|
{
|
||||||
// Replace "error" string with its real, localised form
|
// Replace "error" string with its real, localised form
|
||||||
$error = array_merge($error, array_map(array(&$user, 'lang'), $colour_error));
|
$error = array_merge($error, array_map(array(&$user, 'lang'), $colour_error));
|
||||||
|
@@ -1903,9 +1903,10 @@ function validate_jabber($jid)
|
|||||||
* Validate hex colour value
|
* Validate hex colour value
|
||||||
*
|
*
|
||||||
* @param string $colour The hex colour value
|
* @param string $colour The hex colour value
|
||||||
* @return bool/string Error message if colour value is incorrect, false if it fits the hex colour code
|
* @return bool|string Error message if colour value is incorrect, false if it
|
||||||
|
* fits the hex colour code
|
||||||
*/
|
*/
|
||||||
function phpbb_validate_colour($colour)
|
function phpbb_validate_hex_colour($colour)
|
||||||
{
|
{
|
||||||
if (empty($colour))
|
if (empty($colour))
|
||||||
{
|
{
|
||||||
|
@@ -596,7 +596,7 @@ class ucp_groups
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Validate submitted colour value
|
// Validate submitted colour value
|
||||||
if ($colour_error = validate_data($submit_ary, array('colour' => array('colour'))))
|
if ($colour_error = validate_data($submit_ary, array('colour' => array('hex_colour'))))
|
||||||
{
|
{
|
||||||
// Replace "error" string with its real, localised form
|
// Replace "error" string with its real, localised form
|
||||||
$error = array_merge($error, array_map(array(&$user, 'lang'), $colour_error));
|
$error = array_merge($error, array_map(array(&$user, 'lang'), $colour_error));
|
||||||
|
Reference in New Issue
Block a user