Some sweeping syntax changes for consistency:

(! foo) changed to ( ! foo)
|| changed to OR
changed newline standardization code in various places from preg_replace to str_replace
diff --git a/system/libraries/Config.php b/system/libraries/Config.php
index 06e1cbe..a5d2689 100644
--- a/system/libraries/Config.php
+++ b/system/libraries/Config.php
@@ -1,4 +1,4 @@
-<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

+<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

 /**

  * CodeIgniter

  *

@@ -66,7 +66,7 @@
 			return TRUE;

 		}

 

-		if (! file_exists(APPPATH.'config/'.$file.EXT))

+		if ( ! file_exists(APPPATH.'config/'.$file.EXT))

 		{

 			if ($fail_gracefully === TRUE)

 			{

@@ -77,7 +77,7 @@
 	

 		include(APPPATH.'config/'.$file.EXT);

 

-		if (! isset($config) OR ! is_array($config))

+		if ( ! isset($config) OR ! is_array($config))

 		{

 			if ($fail_gracefully === TRUE)

 			{

@@ -125,7 +125,7 @@
 	{	

 		if ($index == '')

 		{	

-			if (! isset($this->config[$item]))

+			if ( ! isset($this->config[$item]))

 			{

 				return FALSE;

 			}

@@ -134,12 +134,12 @@
 		}

 		else

 		{

-			if (! isset($this->config[$index]))

+			if ( ! isset($this->config[$index]))

 			{

 				return FALSE;

 			}

 

-			if (! isset($this->config[$index][$item]))

+			if ( ! isset($this->config[$index][$item]))

 			{

 				return FALSE;

 			}

@@ -165,7 +165,7 @@
 	 */

 	function slash_item($item)

 	{

-		if (! isset($this->config[$item]))

+		if ( ! isset($this->config[$item]))

 		{

 			return FALSE;

 		}