[Pkg-owncloud-commits] [owncloud] 03/34: Use single quotes

David Prévot taffit at moszumanska.debian.org
Wed Mar 11 15:49:35 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v8.0.0
in repository owncloud.

commit 4801d9c02a01999aea0d637d257e57b9b2f05bc4
Author: Roeland Jago Douma <roeland at famdouma.nl>
Date:   Tue Jan 27 16:15:03 2015 +0100

    Use single quotes
---
 apps/files_sharing/lib/capabilities.php | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/apps/files_sharing/lib/capabilities.php b/apps/files_sharing/lib/capabilities.php
index 25b0484..f6228e3 100644
--- a/apps/files_sharing/lib/capabilities.php
+++ b/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(

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list