Просмотр исходного кода

ZF-8354: replaced file_exists() with Zend_Loader::isReadable()

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@19235 44c647ce-9c0f-0410-b52a-842ac1e357ba
bate 16 лет назад
Родитель
Сommit
bb9394b880
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      library/Zend/Controller/Dispatcher/Standard.php

+ 1 - 1
library/Zend/Controller/Dispatcher/Standard.php

@@ -335,7 +335,7 @@ class Zend_Controller_Dispatcher_Standard extends Zend_Controller_Dispatcher_Abs
         $dispatchDir = $this->getDispatchDirectory();
         $loadFile    = $dispatchDir . DIRECTORY_SEPARATOR . $this->classToFilename($className);
 
-        if (file_exists($loadFile)) {
+        if (Zend_Loader::isReadable($loadFile)) {
             include_once $loadFile;
         } else {
             require_once 'Zend/Controller/Dispatcher/Exception.php';