Skip to content

Commit 04a3538

Browse files
committed
Allow dashes in extension names
1 parent 0eb932e commit 04a3538

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Sonic/Extension/Manager.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ protected function _localInstall($path, $force = false, $from_remote = false)
335335
}
336336

337337
App::getInstance()->includeFile($manifest_path);
338-
$class = "\Sonic\Extension\\" . $name;
338+
$class = "\Sonic\Extension\\" . str_replace('-', '_', $name);
339339
$manifest = new $class;
340340

341341
if (!$manifest instanceof Manifest) {
@@ -993,4 +993,4 @@ public function showUsage()
993993

994994
return $usage;
995995
}
996-
}
996+
}

0 commit comments

Comments
 (0)