Skip to content

Commit

Permalink
repair some typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ClemensSahs committed Oct 14, 2012
1 parent 70b6621 commit 1ec08fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/Zend/Loader/ModuleAutoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public function registerPath($path, $moduleName = false)
));
}
if ($moduleName) {
if (in_array( substr($moduleName, -2 ), array('/*','/%') ) ) {
if (in_array( substr($moduleName, -2 ), array('\\*','\\%') ) ) {
$this->namespacedPaths[ substr($moduleName, 0, -2 ) ] = static::normalizePath($path);
} else {
$this->explicitPaths[$moduleName] = static::normalizePath($path);
Expand Down
2 changes: 1 addition & 1 deletion tests/ZendTest/Loader/ModuleAutoloaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public function testCanLoadModulesFromExplicitLocation()
public function testCanLoadModulesFromNamespace()
{
$loader = new ModuleAutoloader(array(
'FooModule/*' => __DIR__ . '/_files/FooModule',
'FooModule\*' => __DIR__ . '/_files/FooModule',
'FooModule' => __DIR__ . '/_files/FooModule',
));
$loader->register();
Expand Down

0 comments on commit 1ec08fa

Please sign in to comment.