1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 01:25:01 +02:00

Remove some references to deprecated functions/methods.

This commit is contained in:
Cameron
2015-02-14 23:34:15 -08:00
parent db057b3788
commit e576370e57
84 changed files with 319 additions and 317 deletions

View File

@@ -183,7 +183,7 @@ class e107Update
{
$installed = call_user_func("update_".$func);
//?! (LAN_UPDATE == $_POST[$func])
if(varsettrue($_POST['update_core'][$func]) && !$installed)
if(vartrue($_POST['update_core'][$func]) && !$installed)
{
if(function_exists("update_".$func))
{
@@ -203,8 +203,8 @@ class e107Update
}
}
else
{
$mes->addDebug("could run 'update_".$func);
{
$mes->addDebug("could run 'update_".$func);
}
//}
@@ -881,7 +881,7 @@ function update_706_to_800($type='')
}
// Check need for user timezone before we delete the field
if (varsettrue($pref['signup_option_timezone']))
if (vartrue($pref['signup_option_timezone']))
{
if ($sql->db_Field('user', 'user_timezone', '', TRUE) && !$sql->db_Field('user_extended','user_timezone','',TRUE))
{
@@ -1143,8 +1143,8 @@ function update_706_to_800($type='')
asort($exclude);
}
else
{
$exclude = false;
{
$exclude = false;
}
$dbv->compareAll($exclude); // core & plugins, but not plugins calling for an update with xxxxx_setup.php
@@ -1498,8 +1498,8 @@ function update_706_to_800($type='')
}
else
{
// $log->addDebug("Media COUNT was ".$count. " LINE: ".__LINE__);
{
// $log->addDebug("Media COUNT was ".$count. " LINE: ".__LINE__);
}
// Check for Legacy Download Images.
@@ -1652,9 +1652,9 @@ function update_706_to_800($type='')
}
else
{
{
$log->toFile('upgrade_v1_to_v2_check');
}