Commit 21fb7d6b authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #143 in ZP/z-push from bugfix/ZP-830-combined-minor-formatting-fixes to develop

* commit '5ee46844':
  ZP-830 Combined; minor formatting fixes. Released under the Affero GNU General Public License (AGPL) version 3.
parents 825880d1 5ee46844
...@@ -533,21 +533,9 @@ class BackendCombined extends Backend implements ISearchProvider { ...@@ -533,21 +533,9 @@ class BackendCombined extends Backend implements ISearchProvider {
$pos = strpos($folderid, $this->config['delimiter']); $pos = strpos($folderid, $this->config['delimiter']);
if($pos === false) if($pos === false)
return false; return false;
return substr($folderid,0,$pos); return substr($folderid, 0, $pos);
} }
/**
* Returns the BackendCombined as it implements the ISearchProvider interface
* This could be overwritten by the global configuration
*
* @access public
* @return object Implementation of ISearchProvider
*/
public function GetSearchProvider() {
return $this;
}
/** /**
* Indicates which AS version is supported by the backend. * Indicates which AS version is supported by the backend.
* Return the lowest version supported by the backends used. * Return the lowest version supported by the backends used.
...@@ -566,6 +554,17 @@ class BackendCombined extends Backend implements ISearchProvider { ...@@ -566,6 +554,17 @@ class BackendCombined extends Backend implements ISearchProvider {
return $version; return $version;
} }
/**
* Returns the BackendCombined as it implements the ISearchProvider interface
* This could be overwritten by the global configuration
*
* @access public
* @return object Implementation of ISearchProvider
*/
public function GetSearchProvider() {
return $this;
}
/*----------------------------------------------------------------------------------------- /*-----------------------------------------------------------------------------------------
-- ISearchProvider -- ISearchProvider
...@@ -688,5 +687,4 @@ class BackendCombined extends Backend implements ISearchProvider { ...@@ -688,5 +687,4 @@ class BackendCombined extends Backend implements ISearchProvider {
return false; return false;
} }
} }
...@@ -169,7 +169,7 @@ class ImportChangesCombined implements IImportChanges { ...@@ -169,7 +169,7 @@ class ImportChangesCombined implements IImportChanges {
public function ImportFolderChange($folder) { public function ImportFolderChange($folder) {
$id = $folder->serverid; $id = $folder->serverid;
$parent = $folder->parentid; $parent = $folder->parentid;
ZLog::Write(LOGLEVEL_DEBUG, "ImportChangesCombined->ImportFolderChange() ".print_r($folder, 1)); ZLog::Write(LOGLEVEL_DEBUG, sprintf("ImportChangesCombined->ImportFolderChange() id: '%s', parent: '%s'", $id, $parent));
if($parent == '0') { if($parent == '0') {
if($id) { if($id) {
$backendid = $this->backend->GetBackendId($id); $backendid = $this->backend->GetBackendId($id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment