]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix "There must be a single space between the closing parenthesis and the opening...
authorBart Visscher <bartv@thisnet.nl>
Fri, 14 Dec 2012 22:38:38 +0000 (23:38 +0100)
committerBart Visscher <bartv@thisnet.nl>
Fri, 14 Dec 2012 23:43:46 +0000 (00:43 +0100)
apps/files_sharing/public.php
lib/filecache.php
lib/request.php
settings/ajax/togglegroups.php

index 71c18380a3b31dc3a069abe28f72a27ad9626960..fef0ed8a8c291f92a488a06410ef01dadee2c96c 100644 (file)
@@ -160,7 +160,7 @@ if ($linkItem) {
                        exit();
                }
        }
-       $basePath = substr($pathAndUser['path'] , strlen('/'.$fileOwner.'/files'));
+       $basePath = substr($pathAndUser['path'], strlen('/'.$fileOwner.'/files'));
        $path = $basePath;
        if (isset($_GET['path'])) {
                $path .= $_GET['path'];
index bbf55bc1f86730ce9ea21148c2c96d6491232247..c3256c783e63cab5c59db7a2e0701f369440cf89 100644 (file)
@@ -355,7 +355,7 @@ class OC_FileCache{
                if($sizeDiff==0) return;
                $item = OC_FileCache_Cached::get($path);
                //stop walking up the filetree if we hit a non-folder or reached to root folder
-               if($path == '/' || $path=='' || $item['mimetype'] !== 'httpd/unix-directory'){
+               if($path == '/' || $path=='' || $item['mimetype'] !== 'httpd/unix-directory') {
                        return;
                }
                $id = $item['id'];
@@ -363,13 +363,13 @@ class OC_FileCache{
                        $query=OC_DB::prepare('UPDATE `*PREFIX*fscache` SET `size`=`size`+? WHERE `id`=?');
                        $query->execute(array($sizeDiff, $id));
                        $path=dirname($path);
-                       if($path == '' or $path =='/'){
+                       if($path == '' or $path =='/') {
                                return;
                        }
                        $parent = OC_FileCache_Cached::get($path);
                        $id = $parent['id'];
                        //stop walking up the filetree if we hit a non-folder
-                       if($parent['mimetype'] !== 'httpd/unix-directory'){
+                       if($parent['mimetype'] !== 'httpd/unix-directory') {
                                return;
                        }
                }
index 782ed26a4153d6ec494b73dca351162fcc12b38d..99a77e1b59ecb013304aaaa92a5c3cd50849cefb 100755 (executable)
@@ -18,7 +18,7 @@ class OC_Request {
                if(OC::$CLI) {
                        return 'localhost';
                }
-               if(OC_Config::getValue('overwritehost', '')<>''){
+               if(OC_Config::getValue('overwritehost', '')<>'') {
                        return OC_Config::getValue('overwritehost'); 
                }
                if (isset($_SERVER['HTTP_X_FORWARDED_HOST'])) {
@@ -43,7 +43,7 @@ class OC_Request {
        * Returns the server protocol. It respects reverse proxy servers and load balancers
        */
        public static function serverProtocol() {
-               if(OC_Config::getValue('overwriteprotocol', '')<>''){
+               if(OC_Config::getValue('overwriteprotocol', '')<>'') {
                        return OC_Config::getValue('overwriteprotocol'); 
                }
                if (isset($_SERVER['HTTP_X_FORWARDED_PROTO'])) {
index f82ece4aee1464b47ba3c253fab507fef2daa9de..83d455550aee38c23e419ca7feec907e0aa35acb 100644 (file)
@@ -7,7 +7,7 @@ $success = true;
 $username = $_POST["username"];
 $group = $_POST["group"];
 
-if($username == OC_User::getUser() && $group == "admin" &&  OC_Group::inGroup($username, 'admin')){
+if($username == OC_User::getUser() && $group == "admin" &&  OC_Group::inGroup($username, 'admin')) {
        $l = OC_L10N::get('core');
        OC_JSON::error(array( 'data' => array( 'message' => $l->t('Admins can\'t remove themself from the admin group'))));
        exit();