Deprecated: Assigning the return value of new by reference is deprecated in /home/bluestat/public_html/source/index.php on line 477
Bugdar - Commitdiff - ViewGit - Blue Static

Use include() rather than require_once() in Authentication::_setupDatabase()

Robert Sesek [2009-02-14 21:09]
Use include() rather than require_once() in Authentication::_setupDatabase()

* includes/auth/auth.php:
(Authentication::_setupDatabase)
diff --git a/includes/auth/auth.php b/includes/auth/auth.php
index 34cfe83..7142914 100644
--- a/includes/auth/auth.php
+++ b/includes/auth/auth.php
@@ -122,7 +122,7 @@ class Authentication
 		// connect to the DB
 		$this->authDb = new DB_MySQL($this->registry);

-		require_once 'includes/auth/config.php';
+		include 'includes/auth/config.php';
 		$this->authDb->connect(
 			$config['auth']['dbServer'],
 			$config['auth']['dbUser'],