|
|
@@ -5,7 +5,7 @@ class SchemaFactory {
|
|
|
public static function loadDefaultObject($namespace) {
|
|
|
static $_cache = [];
|
|
|
$clsName = str_replace('/', '_', $namespace);
|
|
|
- if (array_key_exists($name, $_cache)) return $_cache[$clsName];
|
|
|
+ if (array_key_exists($clsName, $_cache)) return $_cache[$clsName];
|
|
|
$objClassName = "Schema_{$clsName}StorageAcl";
|
|
|
if (!Lib::tryLoadClass($objClassName)) throw new HttpException("Not implemented - storage object not found '{$namespace}'", 501);
|
|
|
$_cache[$clsName] = new $objClassName();
|