Compare dirname() results to DIRECTORY_SEPARATOR, not '/'

This commit is contained in:
ringmaster 2013-11-14 09:42:56 -05:00
parent ca675d7b08
commit bd3ead0d31
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ class Updater {
$cache->update($id, array('mtime' => $time, 'etag' => $storage->getETag($internalPath)));
if ($realPath !== '') {
$realPath = dirname($realPath);
if($realPath === '/') {
if($realPath === DIRECTORY_SEPARATOR ) {
$realPath = "";
}
// check storage for parent in case we change the storage in this step