Completed
Push — master ( 125ee5...b3888f )
by Alexey
05:20
created
system/modules/View/appAdminControllers/content/template/chooseFile.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
3 3
 <hr/>
4 4
 <?php
5 5
 foreach ($template->config['css'] as $file) {
6
-    if (file_exists($template->path . '/css/' . $file)) {
6
+    if (file_exists($template->path.'/css/'.$file)) {
7 7
         ?>
8
-        <a href ='/admin/view/template/editFile/<?= $template->name; ?>?path=<?= 'css/' . $file; ?>'><?= $file; ?></a>
8
+        <a href ='/admin/view/template/editFile/<?= $template->name; ?>?path=<?= 'css/'.$file; ?>'><?= $file; ?></a>
9 9
         <?php
10 10
     }
11 11
 }
Please login to merge, or discard this patch.
system/modules/View/appAdminControllers/TemplateController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,15 +22,15 @@
 block discarded – undo
22 22
     function editFileAction($templateName)
23 23
     {
24 24
         $template = \View\Template::get($templateName, \App::$primary);
25
-        if (!empty($_GET['path']) && file_exists($template->path . '/' . Tools::parsePath($_GET['path']))) {
25
+        if (!empty($_GET['path']) && file_exists($template->path.'/'.Tools::parsePath($_GET['path']))) {
26 26
             $code = file_get_contents("php://input");
27 27
             if (!empty($code)) {
28 28
                 $result = new Server\Result();
29 29
                 $result->successMsg = 'Файл сохранен';
30
-                $content = file_put_contents($template->path . '/' . Tools::parsePath($_GET['path']), $code);
30
+                $content = file_put_contents($template->path.'/'.Tools::parsePath($_GET['path']), $code);
31 31
                 $result->send();
32 32
             }
33
-            $content = file_get_contents($template->path . '/' . Tools::parsePath($_GET['path']));
33
+            $content = file_get_contents($template->path.'/'.Tools::parsePath($_GET['path']));
34 34
             $this->libs->loadLib('Ace');
35 35
             $this->view->page(['content' => 'template/edit', 'data' => compact('template', 'content')]);
36 36
         } else {
Please login to merge, or discard this patch.
system/modules/View/appAdminControllers/content/Template/chooseFile.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
3 3
 <hr/>
4 4
 <?php
5 5
 foreach ($template->config['css'] as $file) {
6
-    if (file_exists($template->path . '/css/' . $file)) {
6
+    if (file_exists($template->path.'/css/'.$file)) {
7 7
         ?>
8
-        <a href ='/admin/view/template/editFile/<?= $template->name; ?>?path=<?= 'css/' . $file; ?>'><?= $file; ?></a>
8
+        <a href ='/admin/view/template/editFile/<?= $template->name; ?>?path=<?= 'css/'.$file; ?>'><?= $file; ?></a>
9 9
         <?php
10 10
     }
11 11
 }
Please login to merge, or discard this patch.