Commits

volftomas committed 0755ab8

Autoloading libraries with parameters etc

Comments (0)

Files changed (1)

system/core/Loader.php

 			// Load all other libraries
 			foreach ($autoload['libraries'] as $item)
 			{
-				$this->library($item);
+				//TODO: commit this change to the reactor repository
+				if (is_array($item))
+				{
+					$item = array_reverse($item);
+					$this->library(array_pop($item),	//library
+									array_pop($item),	//params
+									array_pop($item));	//object_name
+				}
+				else
+					$this->library($item);
 			}
 		}