Убрал перекодировку т.к все теперь utf-8
This commit is contained in:
parent
bc2541644a
commit
43f501a5e2
2 changed files with 1 additions and 8 deletions
|
|
@ -36,9 +36,6 @@ class Database extends PDO
|
||||||
|
|
||||||
public function executeQuery($query)
|
public function executeQuery($query)
|
||||||
{
|
{
|
||||||
if (isset($_GET['debug'])) {
|
|
||||||
fb($query);
|
|
||||||
}
|
|
||||||
$stmt = $this->prepare($query);
|
$stmt = $this->prepare($query);
|
||||||
$stmt->setFetchMode(PDO::FETCH_ASSOC);
|
$stmt->setFetchMode(PDO::FETCH_ASSOC);
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
|
|
|
||||||
|
|
@ -29,12 +29,8 @@ class HttpRequest extends Collection implements ArrayAccess
|
||||||
$ajax = $this->isAjax();
|
$ajax = $this->isAjax();
|
||||||
foreach ($list as $key => $value) {
|
foreach ($list as $key => $value) {
|
||||||
$data = new SafeCollection();
|
$data = new SafeCollection();
|
||||||
|
$data->import($value);
|
||||||
|
|
||||||
if ($ajax) {
|
|
||||||
$data->import(json::prepare($value, array('self', 'unicode_decode')));
|
|
||||||
} else {
|
|
||||||
$data->import($value);
|
|
||||||
}
|
|
||||||
parent::set($key, $data);
|
parent::set($key, $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue