diff --git a/framework/base/helper.class.php b/framework/base/helper.class.php
index 703d5ec08f..c04e7904bf 100644
--- a/framework/base/helper.class.php
+++ b/framework/base/helper.class.php
@@ -215,15 +215,12 @@ class baseHelper
{
if(is_array($idList))
{
- if(!function_exists('get_magic_quotes_gpc') or !get_magic_quotes_gpc())
- {
- foreach($idList as $key=>$value) $idList[$key] = addslashes($value);
- }
+ foreach($idList as $key=>$value) $idList[$key] = addslashes($value);
return "IN ('" . join("','", $idList) . "')";
}
if(!is_string($idList)) $idList = json_encode($idList);
- if(!function_exists('get_magic_quotes_gpc') or !get_magic_quotes_gpc()) $idList = addslashes($idList);
+ $idList = addslashes($idList);
return "IN ('" . str_replace(',', "','", str_replace(' ', '', $idList)) . "')";
}
diff --git a/module/admin/view/safe.html.php b/module/admin/view/safe.html.php
index e020158c19..738fb25ca6 100644
--- a/module/admin/view/safe.html.php
+++ b/module/admin/view/safe.html.php
@@ -14,7 +14,7 @@
diff --git a/module/automation/control.php b/module/automation/control.php
index c81ec5bedf..c686ef87fe 100644
--- a/module/automation/control.php
+++ b/module/automation/control.php
@@ -61,7 +61,7 @@ class automation extends control
/* Set menu. */
$productID = $this->product->saveState($productID, $this->products);
if(empty($branch)) $branch = (int)$this->cookie->preBranch;
- $this->automation->setMenu($this->products, $productID, $branch);
+ $this->loadModel('qa')->setMenu($this->products, $productID, $branch);
$this->view->title = $this->lang->automation->common;
$this->view->position[] = $this->lang->automation->browse;
diff --git a/module/automation/model.php b/module/automation/model.php
index 9af5349169..720c9b4b80 100644
--- a/module/automation/model.php
+++ b/module/automation/model.php
@@ -13,34 +13,4 @@
loadModel('product');
- foreach($this->lang->testtask->menu as $key => $value)
- {
- if($this->lang->navGroup->testtask != 'qa') $this->loadModel('qa')->setSubMenu('automation', $key, $productID);
- common::setMenuVars($this->lang->testtask->menu, $key, $productID);
- }
-
- if($this->lang->navGroup->automation == 'qa')
- {
- foreach($this->lang->qa->subMenu->automation as $key => $menu)
- {
- common::setMenuVars($this->lang->qa->subMenu->automation, $key, $productID);
- }
- $this->lang->qa->menu = $this->lang->automation->menu;
- $this->lang->automation->menu = $this->lang->qa->subMenu->automation;
- $this->lang->qa->switcherMenu = $this->product->getSwitcher($productID, '', $branch);
- }
- }
-
}
diff --git a/module/backup/view/index.html.php b/module/backup/view/index.html.php
index 34d3759544..9d61e02d1c 100644
--- a/module/backup/view/index.html.php
+++ b/module/backup/view/index.html.php
@@ -17,7 +17,7 @@