Procházet zdrojové kódy

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 před 16 roky
rodič
revize
bb9394b880
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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();
         $dispatchDir = $this->getDispatchDirectory();
         $loadFile    = $dispatchDir . DIRECTORY_SEPARATOR . $this->classToFilename($className);
         $loadFile    = $dispatchDir . DIRECTORY_SEPARATOR . $this->classToFilename($className);
 
 
-        if (file_exists($loadFile)) {
+        if (Zend_Loader::isReadable($loadFile)) {
             include_once $loadFile;
             include_once $loadFile;
         } else {
         } else {
             require_once 'Zend/Controller/Dispatcher/Exception.php';
             require_once 'Zend/Controller/Dispatcher/Exception.php';