X-Git-Url: https://projects.mako.cc/source/scuttle/blobdiff_plain/c20b44263a89d8bf1a78bfa632daaae3cb4f1da2..09b914073c83ccbf61fe0a3bc899c8e9615f1126:/services/servicefactory.php?ds=inline diff --git a/services/servicefactory.php b/services/servicefactory.php index ba2d6d7..5f7635a 100644 --- a/services/servicefactory.php +++ b/services/servicefactory.php @@ -1,14 +1,14 @@ sql_connect($dbhost, $dbuser, $dbpass, $dbname, $dbport, $dbpersist); if(!$db->db_connect_id) { @@ -23,11 +23,10 @@ class ServiceFactory { if (!isset($servicedir)) { $servicedir = dirname(__FILE__) .'/'; } - require_once($servicedir . strtolower($name) . '.php'); + require_once $servicedir . strtolower($name) .'.php'; } $instances[$name] = call_user_func(array($name, 'getInstance'), $db); - } + } return $instances[$name]; } } -?> \ No newline at end of file