Skip to content

Commit

Permalink
is_file -- not file_exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Artistan authored Apr 12, 2018
1 parent 32b3adf commit f1095b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Savant3.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}
Expand Down Expand Up @@ -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;
}
}
Expand Down

0 comments on commit f1095b1

Please sign in to comment.