dever 6 lat temu
rodzic
commit
fa9d69fa60
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      main/src/Journal.php

+ 6 - 0
main/src/Journal.php

@@ -205,6 +205,12 @@ class Journal extends Core
         if ($active && $active['status'] == 1) {
             $this->data['info']['active'] = 1;
         }
+
+        if (isset($this->data['info']['share_content'])) {
+            $source = Dever::db('source/info')->one(1);
+            $this->data['info']['share_link'] = $source['code'];
+        }
+        
         $time = time();
         if ($active && $time >= $active['start'] && $time < $active['end']) {
             $this->data['info']['active'] = 1;