upgrade_main_savepoint(true, 2010080300);
}
+ if ($oldversion < 2010080303) {
+ $rs = $DB->get_recordset_sql('SELECT i.id, i.name, r.type FROM {repository_instances} i, {repository} r WHERE i.typeid = r.id');
+ foreach ($rs as $record) {
+ if ($record->name == $record->type) {
+ // repository_instances was saving type name as in name field
+ // which should be empty, the repository api will try to find
+ // instance name from language files
+ $DB->set_field('repository_instances', 'name', '');
+ }
+ }
+ $rs->close();
+ upgrade_main_savepoint(true, 2010080303);
+ }
+
return true;
}
$string['picasa:view'] = 'View picasa repository';
$string['pluginname'] = 'Picasa web album';
+$string['configplugin'] = 'Picasa repository configuration';
$string['url'] = 'URL';
$string['url:view'] = 'Use url downloader in file picker';
$string['validname'] = 'You must provide a valid file name';
+$string['configplugin'] = 'URL repository type configuration';
$string['keyword'] = 'Full text';
$string['pluginname'] = 'Wikimedia';
$string['wikimedia:view'] = 'View wikimedia repository';
+$string['configplugin'] = 'Wikimedia repository type configuration';
$string['pluginname'] = 'Youtube videos';
$string['search'] = 'Search videos';
$string['youtube:view'] = 'Use youtube in file picker';
+$string['configplugin'] = 'YouTube repository type configuration';
// This is compared against the values stored in the database to determine
// whether upgrades should be performed (see lib/db/*.php)
- $version = 2010080300; // YYYYMMDD = date of the last version bump
+ $version = 2010080303; // YYYYMMDD = date of the last version bump
// XX = daily increments
$release = '2.0 Preview 4+ (Build: 20100803)'; // Human-friendly version name