Improving and Refactoring some task to dispatch multipart request on REST API Dispatching routine (update 2)

This commit is contained in:
Erik Amaru Ortiz
2014-07-08 11:41:11 -04:00
parent e40af67445
commit 0bd9df876e

View File

@@ -303,7 +303,7 @@ class WebApplication
if (pathinfo($classFile, PATHINFO_EXTENSION) === 'php') {
$relClassPath = str_replace('.php', '', str_replace($servicesDir, '', $classFile));
$namespace = '\\ProcessMaker\\Services\\' . str_replace(DS, '\\', $relClassPath);
$namespace = strpos($namespace, "//", '', $namespace);
$namespace = strpos($namespace, "//") === false? $namespace: str_replace("//", '', $namespace);
if (! class_exists($namespace)) {
require_once $classFile;