Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
addcpm-json
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Александр Чаплыгин
addcpm-json
Commits
415e2852
Commit
415e2852
authored
Aug 19, 2019
by
Александр Чаплыгин
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Вынес логику экранирования для стартового рендера в шаблон
parent
d71d0e86
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
Statistics.php
src/src/App/Model/Statistics.php
+0
-4
cabinet-feed.phtml
src/templates/app/user/cabinet-feed.phtml
+1
-1
No files found.
src/src/App/Model/Statistics.php
View file @
415e2852
...
@@ -262,10 +262,6 @@ class Statistics
...
@@ -262,10 +262,6 @@ class Statistics
$dataStats
[
'ViewID'
][]
=
$item
[
'ViewID'
];
$dataStats
[
'ViewID'
][]
=
$item
[
'ViewID'
];
$dataStats
[
'Timestamp'
][]
=
$item
[
'Timestamp'
];
$dataStats
[
'Timestamp'
][]
=
$item
[
'Timestamp'
];
$dataStats
[
'OrderSum'
][]
=
$item
[
'OrderSum'
];
$dataStats
[
'OrderSum'
][]
=
$item
[
'OrderSum'
];
// Преобразует специальные символы в названиях в корзине:
foreach
(
$item
[
'Basket'
]
as
$ind
=>
$item_basket
)
{
$item
[
'Basket'
][
$ind
][
'Title'
]
=
htmlspecialchars
(
$item_basket
[
'Title'
],
ENT_NOQUOTES
);
}
$dataStats
[
'Basket'
][]
=
$item
[
'Basket'
];
$dataStats
[
'Basket'
][]
=
$item
[
'Basket'
];
$dataStats
[
'AdMoney'
][]
=
$item
[
'AdMoney'
];
$dataStats
[
'AdMoney'
][]
=
$item
[
'AdMoney'
];
/*
/*
...
...
src/templates/app/user/cabinet-feed.phtml
View file @
415e2852
...
@@ -89,7 +89,7 @@ if (!$error) {
...
@@ -89,7 +89,7 @@ if (!$error) {
<?php
else
:
?>
<?php
else
:
?>
<textarea
id=
"period-stats"
>
<?=
(
$periodStats
?
json_encode
(
$periodStats
,
JSON_UNESCAPED_UNICODE
)
:
''
)
?>
</textarea>
<textarea
id=
"period-stats"
>
<?=
(
$periodStats
?
htmlspecialchars
(
json_encode
(
$periodStats
,
JSON_UNESCAPED_UNICODE
)
)
:
''
)
?>
</textarea>
<textarea
id=
"report-cats"
>
<?=
(
$report_cats
?
json_encode
(
$report_cats
,
JSON_UNESCAPED_UNICODE
)
:
''
)
?>
</textarea>
<textarea
id=
"report-cats"
>
<?=
(
$report_cats
?
json_encode
(
$report_cats
,
JSON_UNESCAPED_UNICODE
)
:
''
)
?>
</textarea>
<section
class=
"b-content__work"
>
<section
class=
"b-content__work"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment