X-Git-Url: https://projects.mako.cc/source/scuttle/blobdiff_plain/bce919af7b49bbd06223f79b8c37a53a3d263ff0..c7f63c8b9b12efd7b3c10b9f80cda06eaf32068f:/services/servicefactory.php 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