mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
Fixes #3681 - removed unused flood protect pref.
This commit is contained in:
parent
9b2df7e951
commit
faed5e5d46
@ -639,7 +639,7 @@ function update_core_database($type = '')
|
||||
* @param string $type
|
||||
* @return bool true = no update required, and false if update required.
|
||||
*/
|
||||
function update_20x_to_220($type='')
|
||||
function update_20x_to_230($type='')
|
||||
{
|
||||
|
||||
$sql = e107::getDb();
|
||||
@ -685,6 +685,17 @@ function update_core_database($type = '')
|
||||
}
|
||||
|
||||
|
||||
if(isset($pref['flood_protect']))
|
||||
{
|
||||
if ($just_check)
|
||||
{
|
||||
return update_needed("Old flood protection pref needs to be removed.");
|
||||
}
|
||||
|
||||
e107::getConfig()->remove('flood_protect')->save(false,true,false);
|
||||
}
|
||||
|
||||
|
||||
// User is marked as not installed.
|
||||
if($sql->select('plugin', 'plugin_id', "plugin_path = 'user' AND plugin_installflag != 1 LIMIT 1"))
|
||||
{
|
||||
@ -2084,7 +2095,7 @@ function addIndexToTable($target, $indexSpec, $just_check, &$updateMessages, $op
|
||||
|
||||
|
||||
/** Check for database access errors
|
||||
* @param reference $target - pointer to db object
|
||||
* @param object e_db $target - pointer to db object
|
||||
* @return null
|
||||
*/
|
||||
function catch_error(&$target)
|
||||
|
Loading…
x
Reference in New Issue
Block a user