namespace
namespace

--- a/app/lib/AutovitFetcherClass.php
+++ b/app/lib/AutovitFetcherClass.php
@@ -1,4 +1,6 @@
 <?php
+
+namespace carstats;
 
 /**
  * @author      Razvan Stanga <git@razvi.ro>

--- a/app/lib/CommonClass.php
+++ b/app/lib/CommonClass.php
@@ -1,4 +1,6 @@
 <?php
+
+namespace carstats;
 
 /**
  * @author      Razvan Stanga <git@razvi.ro>

--- a/app/lib/DbClass.php
+++ b/app/lib/DbClass.php
@@ -1,4 +1,6 @@
 <?php
+
+namespace carstats;
 
 /**
  * @author      Razvan Stanga <git@razvi.ro>
@@ -21,7 +23,7 @@
 
 	private static function connect ()
 	{
-		self::$db = new mysqli(self::$dbData['sql_host'], self::$dbData['sql_user'], self::$dbData['sql_pass'], self::$dbData['sql_db'], self::$dbData['sql_port']);
+		self::$db = new \mysqli(self::$dbData['sql_host'], self::$dbData['sql_user'], self::$dbData['sql_pass'], self::$dbData['sql_db'], self::$dbData['sql_port']);
 	}
 
 	/**

file:a/fetch.php -> file:b/fetch.php
--- a/fetch.php
+++ b/fetch.php
@@ -1,4 +1,6 @@
 <?php
+
+namespace carstats;
 
 /**
  * @author      Razvan Stanga <git@razvi.ro>

comments