diff options
author | Felix Moeller <mail@felixmoeller.de> | 2012-10-23 23:01:10 +0200 |
---|---|---|
committer | Felix Moeller <mail@felixmoeller.de> | 2012-10-23 23:01:10 +0200 |
commit | 561cbb2de69a31934c22fc28332b5a14b6fcfc68 (patch) | |
tree | 502f17c451cd4af82ebc9fe797d34d662b1831ae /lib | |
parent | e73b817a38a824b3119136ea110eda4be15b99d5 (diff) | |
download | nextcloud-server-561cbb2de69a31934c22fc28332b5a14b6fcfc68.tar.gz nextcloud-server-561cbb2de69a31934c22fc28332b5a14b6fcfc68.zip |
NoSpaceAfterComma II
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MDB2/Driver/Function/sqlite3.php | 2 | ||||
-rw-r--r-- | lib/filecache.php | 6 | ||||
-rw-r--r-- | lib/templatelayout.php | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/lib/MDB2/Driver/Function/sqlite3.php b/lib/MDB2/Driver/Function/sqlite3.php index 235a106e183..0bddde5bf3f 100644 --- a/lib/MDB2/Driver/Function/sqlite3.php +++ b/lib/MDB2/Driver/Function/sqlite3.php @@ -94,7 +94,7 @@ class MDB2_Driver_Function_sqlite3 extends MDB2_Driver_Function_Common if (!is_null($length)) { return "substr($value,$position,$length)"; } - return "substr($value,$position,length($value))"; + return "substr($value, $position, length($value))"; } // }}} diff --git a/lib/filecache.php b/lib/filecache.php index 32257595443..b8b35cdf3d2 100644 --- a/lib/filecache.php +++ b/lib/filecache.php @@ -102,7 +102,7 @@ class OC_FileCache{ $data['versioned']=(int)$data['versioned']; $user=OC_User::getUser(); $query=OC_DB::prepare('INSERT INTO `*PREFIX*fscache`(`parent`, `name`, `path`, `path_hash`, `size`, `mtime`, `ctime`, `mimetype`, `mimepart`,`user`,`writable`,`encrypted`,`versioned`) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?)'); - $result=$query->execute(array($parent,basename($fullpath),$fullpath, md5($fullpath),$data['size'],$data['mtime'],$data['ctime'],$data['mimetype'],$mimePart,$user,$data['writable'],$data['encrypted'],$data['versioned'])); + $result=$query->execute(array($parent, basename($fullpath), $fullpath, md5($fullpath), $data['size'], $data['mtime'], $data['ctime'], $data['mimetype'], $mimePart, $user, $data['writable'], $data['encrypted'], $data['versioned'])); if(OC_DB::isError($result)) { OC_Log::write('files', 'error while writing file('.$fullpath.') to cache', OC_Log::ERROR); } @@ -163,7 +163,7 @@ class OC_FileCache{ $newPath=$root.$newPath; $newParent=self::getParentId($newPath); $query=OC_DB::prepare('UPDATE `*PREFIX*fscache` SET `parent`=? ,`name`=?, `path`=?, `path_hash`=? WHERE `path_hash`=?'); - $query->execute(array($newParent,basename($newPath),$newPath,md5($newPath), md5($oldPath))); + $query->execute(array($newParent, basename($newPath), $newPath, md5($newPath), md5($oldPath))); if(($cache=OC_Cache::getUserCache(true)) && $cache->hasKey('fileid/'.$oldPath)) { $cache->set('fileid/'.$newPath, $cache->get('fileid/'.$oldPath)); @@ -176,7 +176,7 @@ class OC_FileCache{ while($row= $query->execute(array($oldPath.'/%'))->fetchRow()) { $old=$row['path']; $new=$newPath.substr($old, $oldLength); - $updateQuery->execute(array($new,md5($new), md5($old))); + $updateQuery->execute(array($new, md5($new), md5($old))); if(($cache=OC_Cache::getUserCache(true)) && $cache->hasKey('fileid/'.$old)) { $cache->set('fileid/'.$new, $cache->get('fileid/'.$old)); diff --git a/lib/templatelayout.php b/lib/templatelayout.php index 645c92fa1f1..c3da172a7c1 100644 --- a/lib/templatelayout.php +++ b/lib/templatelayout.php @@ -38,7 +38,7 @@ class OC_TemplateLayout extends OC_Template { foreach(OC_App::getEnabledApps() as $app) { $apps_paths[$app] = OC_App::getAppWebPath($app); } - $this->assign( 'apps_paths', str_replace('\\/', '/',json_encode($apps_paths)), false ); // Ugly unescape slashes waiting for better solution + $this->assign( 'apps_paths', str_replace('\\/', '/', json_encode($apps_paths)), false ); // Ugly unescape slashes waiting for better solution if (OC_Config::getValue('installed', false) && !OC_AppConfig::getValue('core', 'remote_core.css', false)) { OC_AppConfig::setValue('core', 'remote_core.css', '/core/minimizer.php'); |