summaryrefslogtreecommitdiffstats
path: root/frontend/install/classes/class.ImportDB.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/install/classes/class.ImportDB.php')
-rw-r--r--frontend/install/classes/class.ImportDB.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/frontend/install/classes/class.ImportDB.php b/frontend/install/classes/class.ImportDB.php
index 5ba632f..3024c41 100644
--- a/frontend/install/classes/class.ImportDB.php
+++ b/frontend/install/classes/class.ImportDB.php
@@ -7,7 +7,7 @@
class ImportDB{
- var $clean_db_file = '../../sql/1ka_clean_27-7-2020.sql'; // Datoteka prazne baze za uvoz
+ var $clean_db_file = '../../sql/1ka_clean_26-11-2021.sql'; // Datoteka prazne baze za uvoz
var $update_db_file = '../../sql/update2.sql'; // Datoteka prazne baze za uvoz
var $version = ''; // Trenutna verzija 1ke
@@ -66,6 +66,10 @@ class ImportDB{
$sql = sisplet_query("SELECT * FROM misc WHERE what='version'");
if($sql !== FALSE && mysqli_num_rows($sql) > 0){
+ // Najprej updatamo se app_settings z ustrezno domeno
+ global $site_domain;
+ $sqlA = sisplet_query("UPDATE app_settings SET domain='".$site_domain."'");
+
$row = mysqli_fetch_array($sql);
$this->version = $row['value'];