1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

Work on prefs not saving problem that some people have experienced.

This commit is contained in:
Cameron
2013-05-04 02:23:57 -07:00
parent 1c2dc80e93
commit 8247701182

View File

@@ -175,6 +175,7 @@ class e107Update
if(varset($_POST['update_core']) && is_array($_POST['update_core'])) if(varset($_POST['update_core']) && is_array($_POST['update_core']))
{ {
$func = key($_POST['update_core']);
$message = $this->updateCore(); $message = $this->updateCore();
} }
@@ -195,12 +196,12 @@ class e107Update
function updateCore() function updateCore($func='')
{ {
$mes = e107::getMessage(); $mes = e107::getMessage();
foreach($this->core as $func => $data) // foreach($this->core as $func => $data)
{ // {
if(function_exists('update_'.$func)) // Legacy Method. if(function_exists('update_'.$func)) // Legacy Method.
{ {
$installed = call_user_func("update_".$func); $installed = call_user_func("update_".$func);
@@ -225,7 +226,7 @@ class e107Update
} }
} }
} //}
} }