diff --git a/livesupport/src/modules/storageServer/var/Backup.php b/livesupport/src/modules/storageServer/var/Backup.php index c42cef954..c46424205 100755 --- a/livesupport/src/modules/storageServer/var/Backup.php +++ b/livesupport/src/modules/storageServer/var/Backup.php @@ -114,6 +114,7 @@ class Backup { # save the metafile to tmpdir $hostname = trim(`hostname`); $ctime = time(); + $ctime_f = date("Ymd-H:i:s"); file_put_contents("{$this->tmpDirMeta}/storage.xml", "\n". "\n" + "/>\n" ); # copy all file to tmpdir @@ -403,5 +404,4 @@ class Backup { return true; } } -?> - +?> \ No newline at end of file diff --git a/livesupport/src/modules/storageServer/var/LocStor.php b/livesupport/src/modules/storageServer/var/LocStor.php index 972bc9059..b441896c5 100644 --- a/livesupport/src/modules/storageServer/var/LocStor.php +++ b/livesupport/src/modules/storageServer/var/LocStor.php @@ -362,6 +362,13 @@ class LocStor extends BasicStor{ } return $res; } + function localSearch($criteria, $sessid='') + { + $limit = intval(isset($criteria['limit']) ? $criteria['limit'] : 0); + $offset = intval(isset($criteria['offset']) ? $criteria['offset'] : 0); + return $this->bsLocalSearch($criteria, $limit, $offset); + } + /** * Return values of specified metadata category @@ -942,6 +949,12 @@ class LocStor extends BasicStor{ require_once "Backup.php"; $bu = $r = new Backup($this); if (PEAR::isError($r)) return $r; + $r = $bu->openBackup($sessid,$criteria); + if ($r === FALSE){ + return PEAR::raiseError( + "LocStor::createBackupOpen: false returned from Backup" + ); + } return $bu->openBackup($sessid,$criteria); }