Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit f1e2b3c

Browse files
committed
Merge remote-tracking branch 'origin/develop' into develop
2 parents db371d9 + cdd566b commit f1e2b3c

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

core/src/core/src/pydio/Core/Services/RepositoryService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public static function listRepositoriesWithCriteria($criteria, &$count)
236236
$statics = self::filterRepositoryListWithCriteria($statics, $criteria);
237237
$dyna = ConfService::getConfStorageImpl()->listRepositoriesWithCriteria($criteria, $count);
238238
$count += count($statics);
239-
return array_merge($statics, $dyna);
239+
return $statics + $dyna;
240240

241241
}
242242

core/src/plugins/metastore.serial/SerialMetaStore.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,16 +319,19 @@ protected function saveMetaFileData($ajxpNode, $scope, $userId)
319319
}
320320
$writeMode = "w";
321321
$nodeIsWinLocal = false;
322-
if($scope === AJXP_METADATA_SCOPE_GLOBAL && $this->nodeIsLocalWindowsFS($ajxpNode) && file_exists($metaFile)){
322+
if($scope === AJXP_METADATA_SCOPE_GLOBAL && $this->nodeIsLocalWindowsFS($ajxpNode)) {
323323
$nodeIsWinLocal = true;
324-
$writeMode = "rw+";
324+
if (file_exists($metaFile)) {
325+
$writeMode = "rw+";
326+
$nodeIsWinLocal = false;
327+
}
325328
}
326329
$fp = @fopen($metaFile, $writeMode);
327330
if ($fp !== false) {
328331
@fwrite($fp, serialize(self::$fullMetaCache[$metaFile]), strlen(serialize(self::$fullMetaCache[$metaFile])));
329332
@fclose($fp);
330333
if($nodeIsWinLocal){
331-
$real_path_metafile = TextEncoder::toStorageEncoding(realpath(MetaStreamWrapper::getRealFSReference($metaFile)));
334+
$real_path_metafile = realpath(MetaStreamWrapper::getRealFSReference($metaFile));
332335
if (is_dir(dirname($real_path_metafile))) {
333336
StatHelper::winSetHidden($real_path_metafile);
334337
}

0 commit comments

Comments
 (0)