|
|
@@ -335,7 +335,9 @@ class Zend_Controller_Dispatcher_Standard extends Zend_Controller_Dispatcher_Abs
|
|
|
$dispatchDir = $this->getDispatchDirectory();
|
|
|
$loadFile = $dispatchDir . DIRECTORY_SEPARATOR . $this->classToFilename($className);
|
|
|
|
|
|
- if (!include_once $loadFile) {
|
|
|
+ if (file_exists($loadFile)) {
|
|
|
+ include_once $loadFile;
|
|
|
+ } else {
|
|
|
require_once 'Zend/Controller/Dispatcher/Exception.php';
|
|
|
throw new Zend_Controller_Dispatcher_Exception('Cannot load controller class "' . $className . '" from file "' . $loadFile . "'");
|
|
|
}
|