|
@@ -89,7 +89,7 @@ discard block |
|
|
block discarded – undo |
|
89
|
89
|
private function updateMimetypes($updatedMimetypes) { |
|
90
|
90
|
if (empty($this->folderMimeTypeId)) { |
|
91
|
91
|
$result = \OC_DB::executeAudited(self::getIdStmt(), array('httpd/unix-directory')); |
|
92
|
|
- $this->folderMimeTypeId = (int)$result->fetchOne(); |
|
|
92
|
+ $this->folderMimeTypeId = (int) $result->fetchOne(); |
|
93
|
93
|
} |
|
94
|
94
|
|
|
95
|
95
|
$count = 0; |
|
@@ -107,7 +107,7 @@ discard block |
|
|
block discarded – undo |
|
107
|
107
|
$mimetypeId = $result->fetchOne(); |
|
108
|
108
|
|
|
109
|
109
|
// change mimetype for files with x extension |
|
110
|
|
- $count += \OC_DB::executeAudited(self::updateByNameStmt(), array($mimetypeId, $this->folderMimeTypeId, $mimetypeId, '%.' . $extension)); |
|
|
110
|
+ $count += \OC_DB::executeAudited(self::updateByNameStmt(), array($mimetypeId, $this->folderMimeTypeId, $mimetypeId, '%.'.$extension)); |
|
111
|
111
|
} |
|
112
|
112
|
|
|
113
|
113
|
return $count; |
Please login to merge, or discard this patch.