Commit c34f6863 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix filetype resync so it doesn't remove most of the mimetypes

parent fe6013c9
......@@ -210,13 +210,12 @@ class PluginArtefactFile extends PluginArtefact {
if (!isset($currentlist[$mimetype])) {
log_debug('Adding mimetype: ' . $mimetype . ' (' . $description . ')');
execute_sql("INSERT INTO {artefact_file_mime_types} (mimetype, description) VALUES (?,?)", array($mimetype, $description));
$newtypes[$mimetype] = true;
}
else if ($currentlist[$mimetype]->description != $description) {
log_debug('Updating mimetype: ' . $mimetype . ' (' . $description . ')');
execute_sql("UPDATE {artefact_file_mime_types} SET description = ? WHERE mimetype = ?", array($description, $mimetype));
$newtypes[$mimetype] = true;
}
$newtypes[$mimetype] = true;
$currentlist[$mimetype] = (object) array(
'mimetype' => $mimetype,
'description' => $description,
......
......@@ -27,7 +27,7 @@
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2009033000;
$config->version = 2009051300;
$config->release = '1.1.0';
?>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment