mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Fixes #3681 - removed unused flood protect pref.
This commit is contained in:
@@ -639,7 +639,7 @@ function update_core_database($type = '')
|
|||||||
* @param string $type
|
* @param string $type
|
||||||
* @return bool true = no update required, and false if update required.
|
* @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();
|
$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.
|
// User is marked as not installed.
|
||||||
if($sql->select('plugin', 'plugin_id', "plugin_path = 'user' AND plugin_installflag != 1 LIMIT 1"))
|
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
|
/** Check for database access errors
|
||||||
* @param reference $target - pointer to db object
|
* @param object e_db $target - pointer to db object
|
||||||
* @return null
|
* @return null
|
||||||
*/
|
*/
|
||||||
function catch_error(&$target)
|
function catch_error(&$target)
|
||||||
|
Reference in New Issue
Block a user