]> projects.mako.cc - scuttle/blobdiff - services/servicefactory.php
Bugfix: bookmark duplicate check on mysqli
[scuttle] / services / servicefactory.php
index 5f7635a91ebcc1500b8cdf28261300308284338c..987d908727e8365abc6887fd3158c7364dfefa7c 100644 (file)
@@ -25,7 +25,7 @@ class ServiceFactory {
                 }
                 require_once $servicedir . strtolower($name) .'.php';
             }
-            $instances[$name] = call_user_func(array($name, 'getInstance'), $db);
+            $instances[$name] = call_user_func_array(array($name, 'getInstance'), array(&$db));
         }
         return $instances[$name];
     }

Benjamin Mako Hill || Want to submit a patch?