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:
@@ -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':
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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':
|
||||
|
@@ -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
|
||||
|
@@ -624,7 +624,7 @@ class private_message
|
||||
}
|
||||
else
|
||||
{
|
||||
$var = strip_if_magic($var);
|
||||
// $var = strip_if_magic($var);
|
||||
$var = str_replace("'", ''', trim($var)); // Display name uses entities for apostrophe
|
||||
$where = "user_name LIKE '".$sql->escape($var, FALSE)."'";
|
||||
}
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user