Changeset:
        0aa8c77362ef
        
https://sourceforge.net/p/mrbs/hg-code/ci/0aa8c77362ef41f65bbd1207aad55981c88b2be4
Author:
        John Beranek <[email protected]>
Date:
        Fri Sep 30 22:41:03 2016 +0100
Log message:

Removed DB::default_db() static method, and accidental change to 
internconfig.inc.php

diffstat:

 web/internalconfig.inc.php |   3 ---
 web/lib/MRBS/DB.php        |  17 -----------------
 2 files changed, 0 insertions(+), 20 deletions(-)

diffs (44 lines):

diff -r 884cad2d2a9f -r 0aa8c77362ef web/internalconfig.inc.php
--- a/web/internalconfig.inc.php        Fri Sep 30 22:39:29 2016 +0100
+++ b/web/internalconfig.inc.php        Fri Sep 30 22:41:03 2016 +0100
@@ -529,6 +529,3 @@
 error_reporting ($error_level);
 set_error_handler(__NAMESPACE__ . "\\error_handler");
 set_exception_handler(__NAMESPACE__ . "\\exception_handler");
-
-error_reporting(-1);
-ini_set('display_errors', '1');
diff -r 884cad2d2a9f -r 0aa8c77362ef web/lib/MRBS/DB.php
--- a/web/lib/MRBS/DB.php       Fri Sep 30 22:39:29 2016 +0100
+++ b/web/lib/MRBS/DB.php       Fri Sep 30 22:41:03 2016 +0100
@@ -13,7 +13,6 @@
   const DB_DBO_DRIVER = null;
   protected $dbh = null;
   protected $mutex_lock_name;
-  static private $default_db_obj;
 
 
   //
@@ -70,22 +69,6 @@
   }
 
   
-  // Static function to return a DB object for the default MRBS database 
connection,
-  // will make the connection if it hasn't been made yet.
-  static public function default_db()
-  {
-    if (is_null(self::$default_db_obj))
-    {
-      global $db_persist, $db_host, $db_login, $db_password,
-             $db_database, $db_port, $dbsys;
-      
-      self::$default_db_obj = DBFactory::create($dbsys, $db_host, $db_login, 
$db_password,
-                                                $db_database, $db_persist, 
$db_port);
-    }
-    return self::$default_db_obj;
-  }
-
-
   //
   public function error()
   {

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to