Fix variable names
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
fd75c08238
commit
00ebd5c184
|
@ -154,19 +154,19 @@ class Loader implements IMimeTypeLoader {
|
||||||
* Update filecache mimetype based on file extension
|
* Update filecache mimetype based on file extension
|
||||||
*
|
*
|
||||||
* @param string $ext file extension
|
* @param string $ext file extension
|
||||||
* @param int $mimetypeId
|
* @param int $mimeTypeId
|
||||||
* @return int number of changed rows
|
* @return int number of changed rows
|
||||||
*/
|
*/
|
||||||
public function updateFilecache($ext, $mimetypeId) {
|
public function updateFilecache($ext, $mimeTypeId) {
|
||||||
$isFolderId = $this->getId('httpd/unix-directory');
|
$folderMimeTypeId = $this->getId('httpd/unix-directory');
|
||||||
$update = $this->dbConnection->getQueryBuilder();
|
$update = $this->dbConnection->getQueryBuilder();
|
||||||
$update->update('filecache')
|
$update->update('filecache')
|
||||||
->set('mimetype', $update->createNamedParameter($mimetypeId))
|
->set('mimetype', $update->createNamedParameter($mimeTypeId))
|
||||||
->where($update->expr()->neq(
|
->where($update->expr()->neq(
|
||||||
'mimetype', $update->createNamedParameter($mimetypeId)
|
'mimetype', $update->createNamedParameter($mimeTypeId)
|
||||||
))
|
))
|
||||||
->andWhere($update->expr()->neq(
|
->andWhere($update->expr()->neq(
|
||||||
'mimetype', $update->createNamedParameter($isFolderId)
|
'mimetype', $update->createNamedParameter($folderMimeTypeId)
|
||||||
))
|
))
|
||||||
->andWhere($update->expr()->like(
|
->andWhere($update->expr()->like(
|
||||||
$update->createFunction('LOWER(' . $update->getColumnName('name') . ')'),
|
$update->createFunction('LOWER(' . $update->getColumnName('name') . ')'),
|
||||||
|
|
Loading…
Reference in New Issue