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

Closes #1801 Code cleanup. Deprecated method errors added.

This commit is contained in:
Cameron
2020-12-22 14:48:28 -08:00
parent 881670d92c
commit 402d1f4126
37 changed files with 347 additions and 393 deletions

View File

@@ -171,7 +171,7 @@ class faq_cat_form_ui extends e_admin_form_ui
break;
case 'write':
return $this->selectbox('faq_info_parent', $controller->getFaqCategoryTree(), $curVal);
return $this->select('faq_info_parent', $controller->getFaqCategoryTree(), $curVal);
break;
case 'filter':
@@ -367,7 +367,7 @@ class faq_admin_form_ui extends e_admin_form_ui
case 'write':
return $this->selectbox('faq_parent', $controller->getFaqCategoryTree(), $curVal).$this->hidden('pending', $pending);
return $this->select('faq_parent', $controller->getFaqCategoryTree(), $curVal).$this->hidden('pending', $pending);
break;
case 'filter':

View File

@@ -18,7 +18,7 @@ if (!$e107->isInstalled('forum'))
if(!USER)
{
header("location:".e_PLUGIN."forum/forum.php");
e107::redirect(e_PLUGIN."forum/forum.php");
exit;
}

View File

@@ -678,7 +678,7 @@ class gallery_cat_admin_form_ui extends e_admin_form_ui
break;
case 'write':
return $this->selectbox('gallery_category_parent', $controller->getDownloadCategoryTree(), $curVal);
return $this->select('gallery_category_parent', $controller->getDownloadCategoryTree(), $curVal);
break;
case 'filter':

View File

@@ -646,7 +646,7 @@ class newsletter
}
if ($subscribers_total_count<1)
{
header("location:".e_SELF);
e107::redirect(e_SELF);
exit;
}
// Loop through each user in the array subscribers_list & sanatize

View File

@@ -624,7 +624,7 @@ class private_message
}
else
{
$var = strip_if_magic($var);
// $var = strip_if_magic($var);
$var = str_replace("'", '&#039;', trim($var)); // Display name uses entities for apostrophe
$where = "user_name LIKE '".$sql->escape($var, FALSE)."'";
}

View File

@@ -23,10 +23,10 @@ require_once(e_PLUGIN."poll/poll_class.php");
require_once(e_HANDLER."userclass_class.php");
require_once(e_HANDLER."form_handler.php"); // FIXME using 'form' instead of 'e_form'
if(isset($_POST))
/*if(isset($_POST))
{
$_POST = strip_if_magic($_POST);
}
}*/
$rs = new form;
$poll = new poll;