// Fix backquote in requestSql class
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11871 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -100,7 +100,7 @@ class RequestSqlCore extends ObjectModel
|
|||||||
return $this->validateSql($tab, $in, $sql);
|
return $this->validateSql($tab, $in, $sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function validateSql($tab, $in = false, $sql)
|
public function validateSql($tab, $in, $sql)
|
||||||
{
|
{
|
||||||
if (!$this->testedRequired($tab))
|
if (!$this->testedRequired($tab))
|
||||||
return false;
|
return false;
|
||||||
@@ -154,7 +154,7 @@ class RequestSqlCore extends ObjectModel
|
|||||||
|
|
||||||
public function getAttributesByTable($table)
|
public function getAttributesByTable($table)
|
||||||
{
|
{
|
||||||
return Db::getInstance()->executeS(sprintf('DESCRIBE `%s`', $table));
|
return Db::getInstance()->executeS(sprintf('DESCRIBE %s', $table));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function cutJoin($attrs, $from)
|
public function cutJoin($attrs, $from)
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ class AdminRequestSqlControllerCore extends AdminController
|
|||||||
/**
|
/**
|
||||||
* Display export action link
|
* Display export action link
|
||||||
*/
|
*/
|
||||||
public function displayExportLink($token = null, $id)
|
public function displayExportLink($token, $id)
|
||||||
{
|
{
|
||||||
$tpl = $this->context->smarty->createTemplate('request_sql/list_action_export.tpl');
|
$tpl = $this->context->smarty->createTemplate('request_sql/list_action_export.tpl');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user