[WebBundle] Fixing regression introduced in de37e5225b

Signed-off-by: Jordi Boggiano <j.boggiano@seld.be>
This commit is contained in:
Jordi Boggiano 2010-02-28 17:55:29 +01:00 committed by Fabien Potencier
parent 47aee04459
commit 635135a4e0
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ use Symfony\Foundation\Kernel;
*/
/**
*
*
*
* @package symfony
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
@ -95,7 +95,7 @@ class Application extends BaseApplication
// look for commands
foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($commandDir), \RecursiveIteratorIterator::LEAVES_ONLY) as $file)
{
if ($file->isDir() || strpos($file, -4) !== '.php')
if ($file->isDir() || substr($file, -4) !== '.php')
{
continue;
}