Merge pull request #21769 from owncloud/sort-mimetype-list-before-saving

Sort mimetype list before saving
This commit is contained in:
Roeland Douma 2016-01-18 13:30:27 +01:00
commit 57d9e2b2b7
2 changed files with 16 additions and 14 deletions

View file

@ -71,6 +71,7 @@ class UpdateJS extends Command {
//Remove duplicates
$files = array_values(array_unique($files));
sort($files);
// Fetch all themes!
$themes = [];
@ -100,6 +101,7 @@ class UpdateJS extends Command {
//Remove Duplicates
$themes[$theme] = array_values(array_unique($themes[$theme]));
sort($themes[$theme]);
}
//Generate the JS

View file

@ -82,26 +82,26 @@ OC.MimeTypeList={
"web": "text/code"
},
files: [
"video",
"application",
"application-pdf",
"audio",
"file",
"folder",
"folder-drag-accept",
"folder-starred",
"folder-external",
"folder-public",
"folder-shared",
"folder-starred",
"image",
"package-x-generic",
"text",
"folder-external",
"text-vcard",
"application",
"text-code",
"x-office-spreadsheet",
"application-pdf",
"folder",
"x-office-document",
"text-calendar",
"text-code",
"text-vcard",
"video",
"x-office-document",
"x-office-presentation",
"file",
"folder-shared",
"image",
"audio"
"x-office-spreadsheet"
],
themes: []
};