aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_acp.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-08-05 23:09:44 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-08-05 23:09:44 +0200
commitc28bd7cc609fecd6750ae0e7b4f1b4256f660818 (patch)
treedc604291c2e32789e8e55610eafddc32e96e1dfd /phpBB/includes/functions_acp.php
parent48a8482d23d7ab6fb0ef4c14f3d8464a78c14477 (diff)
downloadforums-c28bd7cc609fecd6750ae0e7b4f1b4256f660818.tar
forums-c28bd7cc609fecd6750ae0e7b4f1b4256f660818.tar.gz
forums-c28bd7cc609fecd6750ae0e7b4f1b4256f660818.tar.bz2
forums-c28bd7cc609fecd6750ae0e7b4f1b4256f660818.tar.xz
forums-c28bd7cc609fecd6750ae0e7b4f1b4256f660818.zip
[feature/php-events] Fix docs and naming of core.validate_config_variable
PHPBB3-9550
Diffstat (limited to 'phpBB/includes/functions_acp.php')
-rw-r--r--phpBB/includes/functions_acp.php18
1 files changed, 15 insertions, 3 deletions
diff --git a/phpBB/includes/functions_acp.php b/phpBB/includes/functions_acp.php
index 23517f23aa..2f0188289b 100644
--- a/phpBB/includes/functions_acp.php
+++ b/phpBB/includes/functions_acp.php
@@ -373,8 +373,7 @@ function build_cfg_template($tpl_type, $key, &$new, $config_key, $vars)
*/
function validate_config_vars($config_vars, &$cfg_array, &$error)
{
- global $phpbb_root_path, $user;
- global $phpbb_dispatcher;
+ global $phpbb_root_path, $user, $phpbb_dispatcher;
$type = 0;
$min = 1;
@@ -552,8 +551,21 @@ function validate_config_vars($config_vars, &$cfg_array, &$error)
break;
default:
+ /**
+ * Validate a config value
+ *
+ * @event core.validate_config_variable
+ * @var array cfg_array Array with config values
+ * @var string config_name Name of the config we validate
+ * @var array config_definition Array with the options for
+ * this config
+ * @var array error Array of errors, the errors should
+ * be strings only, language keys are
+ * not replaced afterwards
+ * @since 3.1-A1
+ */
$vars = array('cfg_array', 'config_name', 'config_definition', 'error');
- extract($phpbb_dispatcher->trigger_event('core.validate_config_vars', compact($vars)));
+ extract($phpbb_dispatcher->trigger_event('core.validate_config_variable', compact($vars)));
break;
}
}