Skip to content

Commit 04b3c70

Browse files
committed
Version 1.1.0 - finalize the comparer popup, add status display for the skipped files with error message on tooltip
1 parent 63a71c3 commit 04b3c70

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

lib/ShortPixelWeb.php

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77
namespace ShortPixelWeb;
88

9-
const WEB_VERSION = "1.0.2";
9+
const WEB_VERSION = "1.1.0";
1010

1111

1212
use ShortPixelWeb\XTemplate;
@@ -62,19 +62,6 @@ function handleRequest() {
6262
}
6363
}
6464

65-
function pathToRelative($path, $reference) {
66-
$pa = explode('/', trim($path, '/'));
67-
$ra = explode('/', trim($reference, '/'));
68-
$res = array();
69-
for($i = 0, $same = true; $i < max(count($pa), count($ra)); $i++) {
70-
if($same && isset($pa[$i]) && isset($ra[$i]) && $pa[$i] == $ra[$i]) continue;
71-
$same = false;
72-
if(isset($ra[$i])) array_unshift($res, '..');
73-
if(isset($pa[$i])) $res[] = $pa[$i];
74-
}
75-
return implode('/', $res);
76-
}
77-
7865
private function folderFullPath($folder) {
7966
return rawurldecode($this->basePath . $folder );
8067
}
@@ -191,6 +178,9 @@ function renderBrowseFolderFragment($folder, $multiSelect, $onlyFolders, $onlyFi
191178
case 'pending':
192179
echo "Pending";
193180
break;
181+
case 'skip':
182+
echo "<span title='" . $info->message . "'>Skipped</span>";
183+
break;
194184
}
195185
echo "</div>";
196186
}

0 commit comments

Comments
 (0)