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

Commit

Permalink
Index action: switch verbose parameter to verboz, as it conflicts wit…
Browse files Browse the repository at this point in the history
…h symfony command line.

GUID: make it consistent with or without com extension on windows.
  • Loading branch information
cdujeu committed Oct 4, 2016
1 parent d2a6029 commit 1f002d7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/core/src/pydio/Core/Utils/Vars/StringHelper.php
Expand Up @@ -302,7 +302,7 @@ public static function regexpToLdap($regexp)
public static function createGUID()
{
if (function_exists('com_create_guid')) {
return com_create_guid();
return trim(com_create_guid(), "{}");
} else {
mt_srand((double)microtime() * 10000);//optional for php 4.2.0 and up.
$charid = strtoupper(md5(uniqid(rand(), true)));
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/core.index/CoreIndexer.php
Expand Up @@ -79,7 +79,7 @@ public function applyAction(\Psr\Http\Message\ServerRequestInterface $requestInt
}
$nodes = $userSelection->buildNodes();

if (isSet($httpVars["verbose"]) && $httpVars["verbose"] == "true") {
if (isSet($httpVars["verboz"]) && $httpVars["verboz"] == "true") {
$this->verboseIndexation = true;
}
$taskId = $requestInterface->getAttribute("pydio-task-id");
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/core.index/manifest.xml
Expand Up @@ -29,7 +29,7 @@
]]></clientCallback>
<serverCallback methodName="applyAction" restParams="/file+" developerComment="Trigger re-indexation of a directory, recursively">
<input_param name="file" type="string" description="Folder to index (can be empty for root)"/>
<input_param name="verbose" type="boolean" description="Print out some info about indexation"/>
<input_param name="verboz" type="boolean" description="Print out some info about indexation"/>
</serverCallback>
</processing>
</action>
Expand Down

0 comments on commit 1f002d7

Please sign in to comment.