From 87adc67e1655e47e9f3a373e94bca931284c4d54 Mon Sep 17 00:00:00 2001 From: Saibamen Date: Wed, 19 Aug 2015 12:36:02 +0200 Subject: [PATCH] Finally fix Linux :) --- diff.php | 2 +- encoding.php | 2 +- index.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/diff.php b/diff.php index d026558..bbd849a 100644 --- a/diff.php +++ b/diff.php @@ -156,7 +156,7 @@ function diff_versions($leftContent, $rightContent) { if (!$regex->isDot()) { - $file = glob($regex->getPathInfo() ."\*{". $fileSearch ."}*.". $fileExt, GLOB_BRACE); + $file = glob($regex->getPathInfo() ."/*{". $fileSearch ."}*.". $fileExt, GLOB_BRACE); $isFile = array_filter($file); diff --git a/encoding.php b/encoding.php index 9e045ab..35d4214 100644 --- a/encoding.php +++ b/encoding.php @@ -126,7 +126,7 @@ { if (!$regex->isDot()) { - $file = glob($regex->getPathInfo() ."\*{". $fileSearch ."}*.". $fileExt, GLOB_BRACE); + $file = glob($regex->getPathInfo() ."/*{". $fileSearch ."}*.". $fileExt, GLOB_BRACE); $isFile = array_filter($file); diff --git a/index.php b/index.php index 5970ab7..1ecc69f 100644 --- a/index.php +++ b/index.php @@ -75,7 +75,7 @@ { if (!$regex->isDot()) { - $file = glob($regex->getPathInfo() ."\*{". $fileSearch ."}*.". $fileExt, GLOB_BRACE); + $file = glob($regex->getPathInfo() ."/*{". $fileSearch ."}*.". $fileExt, GLOB_BRACE); $isFile = array_filter($file); if (empty($isFile))