]> projects.mako.cc - scuttle/blobdiff - services/servicefactory.php
Merge remote-tracking branch 'gh-takuya-o/PHP7.0-mysqli'
[scuttle] / services / servicefactory.php
index 5f7635a91ebcc1500b8cdf28261300308284338c..987d908727e8365abc6887fd3158c7364dfefa7c 100644 (file)
@@ -25,7 +25,7 @@ class ServiceFactory {
                 }
                 require_once $servicedir . strtolower($name) .'.php';
             }
                 }
                 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];
     }
         }
         return $instances[$name];
     }

Benjamin Mako Hill || Want to submit a patch?