mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Insert any new fields required by auth plugins
git-svn-id: file:///svn/phpbb/trunk@2840 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
2b0b8993e7
commit
523bf91b36
1 changed files with 17 additions and 2 deletions
|
@ -544,13 +544,28 @@ switch ( $mode )
|
||||||
$method = 'admin_' . $method;
|
$method = 'admin_' . $method;
|
||||||
if ( function_exists($method) )
|
if ( function_exists($method) )
|
||||||
{
|
{
|
||||||
$method($new);
|
if ( $config_fields = $method($new) )
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// Check if we need to create config fields for this plugin
|
||||||
|
//
|
||||||
|
foreach( $config_fields as $field )
|
||||||
|
{
|
||||||
|
if ( !isset($board_config[$field]) )
|
||||||
|
{
|
||||||
|
$sql = "INSERT INTO " . CONFIG_TABLE . " (config_name, config_value)
|
||||||
|
VALUES ('$field', '')";
|
||||||
|
$db->sql_query($sql);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
unset($config_fields);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Reference in a new issue