diff --git a/Savant3.php b/Savant3.php index 460f7bb..e7a35a2 100755 --- a/Savant3.php +++ b/Savant3.php @@ -1067,11 +1067,11 @@ public function fetch($tpl = null) // silence errors in the filters. Hendy Irawan provided // the next three lines as a "verbose" fix. ob_start(); - if(file_exists($this->__config['fetch'])) { + if(is_file($this->__config['fetch'])) { include $this->__config['fetch']; } echo $this->applyFilters(ob_get_clean()); - } else if(file_exists($this->__config['fetch'])) { + } else if(is_file($this->__config['fetch'])) { // no filters being used. include $this->__config['fetch']; } @@ -1229,7 +1229,7 @@ protected function applyFilters($buffer) // load the Savant3_Filter_*.php resource $file = $callback[0] . '.php'; $result = $this->findFile('resource', $file); - if (file_exists($result)) { + if (is_file($result)) { include_once $result; } }