dever 6 years ago
parent
commit
368b84c3f2
2 changed files with 4 additions and 0 deletions
  1. 2 0
      main/src/Content.php
  2. 2 0
      push/lib/Data.php

+ 2 - 0
main/src/Content.php

@@ -116,6 +116,8 @@ class Content extends Core
         $config = Dever::db('main/config')->one();
         if (isset($config['video']) && $config['video'] == 2) {
             $where['type_no'] = 2;
+        } elseif (isset($config['version']) && Dever::input('version') && $config['version'] == Dever::input('version')) {
+            $where['type_no'] = 2;
         }
 
     	$data = Dever::db('audit/data')->getAll($where);

+ 2 - 0
push/lib/Data.php

@@ -35,6 +35,8 @@ class Data
             $config = Dever::db('main/config')->one();
             if (isset($config['video']) && $config['video'] == 2) {
                 $where['type_no'] = 2;
+            } elseif (isset($config['version']) && Dever::input('version') && $config['version'] == Dever::input('version')) {
+                $where['type_no'] = 2;
             }
 
             if ($page) {