public static function connection() { if (!($connection = self::$db)) { self::$db = new db(); $connection = self::$db; } return $connection; }
public static function connection() { if (!$connection = self::$db) { self::$db = new db($GLOBALS['siteConfig']); $connection = self::$db; } return $connection; }