From 5a0a2ac46a3f7b895427044fb46693aa1e043ff8 Mon Sep 17 00:00:00 2001
From: Peter Rotich <peter@osticket.com>
Date: Thu, 28 Jun 2012 00:23:02 -0400
Subject: [PATCH] Add getDBVersion - used to detect old installations during
 upgrade

---
 include/class.config.php | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/class.config.php b/include/class.config.php
index 8ff005618..e293908d6 100644
--- a/include/class.config.php
+++ b/include/class.config.php
@@ -77,6 +77,11 @@ class Config {
         return THIS_VERSION;
     }
 
+    //Used to detect version prior to 1.7 (useful during upgrade)
+    function getDBVersion() {
+        return $this->config['ostversion'];
+    }
+
     function getSchemaSignature() {
 
         if($this->config['schema_signature'])
-- 
GitLab