Browse Source

Use single quotes

remotes/origin/log-external-deletes
Roeland Jago Douma 11 years ago
parent
commit
4801d9c02a
  1. 14
      apps/files_sharing/lib/capabilities.php

14
apps/files_sharing/lib/capabilities.php

@ -23,18 +23,18 @@ class Capabilities {
$config = \OC::$server->getConfig();
$res = array();
if ($config->getAppValue('core', 'shareapi_allow_links', 'yes') === "yes") {
$res["allow_links"] = true;
if ($config->getAppValue('core', 'shareapi_allow_links', 'yes') === 'yes') {
$res['allow_links'] = true;
if ($config->getAppValue('core', 'shareapi_enforce_links_password', 'yes') === "yes") {
$res["enforce_links_password"] = true;
if ($config->getAppValue('core', 'shareapi_enforce_links_password', 'yes') === 'yes') {
$res['enforce_links_password'] = true;
}
if ($config->getAppValue('core', 'shareapi_allow_public_upload', 'yes') === "yes") {
$res["allow_public_upload"] = true;
if ($config->getAppValue('core', 'shareapi_allow_public_upload', 'yes') === 'yes') {
$res['allow_public_upload'] = true;
}
$res = array("sharing" => $res);
$res = array('sharing' => $res);
}
return new \OC_OCS_Result(array(

Loading…
Cancel
Save