/** * Find file in path ! * @param string $file * @return string */ protected static function findInPath($file, $display_error = true) { foreach (Z::$path as $p) { if (file_exists($f = $p . $file)) { return $f; } } return $display_error ? Z::returnError('<p>Le fichier « ' . $file . ' » n’a pas été trouvé. </p>') : ''; }