rabin 22 годин тому
батько
коміт
7b03fc0b16
2 змінених файлів з 4 додано та 4 видалено
  1. 1 1
      src/place/boot.php
  2. 3 3
      src/place/source/app/Lib/Content.php

+ 1 - 1
src/place/boot.php

@@ -77,7 +77,7 @@ class Place
             }
         }
         if ($sales) {
-            $this->info['name'] = $sales['name'];
+            $this->info['name'] = $this->info['name'] . $sales['name'];
             if ($sales['logo']) {
                 $this->info['logo'] = $sales['logo'];
             }

+ 3 - 3
src/place/source/app/Lib/Content.php

@@ -83,9 +83,9 @@ class Content
             return $info;
         }
         $info['content'] = htmlspecialchars_decode($info['content']);
-        $info['media'] = Dever::db('psource/content_media')->select(['content_id' => $info['id']], ['col' => 'id,name as title,file as url']);
-        $info['data'] = Dever::db('psource/content_data')->select(['content_id' => $info['id']], ['col' => 'id,name,file']);
-        $info['link'] = Dever::db('psource/content_link')->select(['content_id' => $info['id']], ['col' => 'id,name,link']);
+        $info['media'] = Dever::db('psource/content_media')->select(['content_id' => $info['id'], 'status' => 1], ['col' => 'id,name as title,file as url']);
+        $info['data'] = Dever::db('psource/content_data')->select(['content_id' => $info['id'], 'status' => 1], ['col' => 'id,name,file']);
+        $info['link'] = Dever::db('psource/content_link')->select(['content_id' => $info['id'], 'status' => 1], ['col' => 'id,name,link']);
         return $info;
     }