Commit ddbebe6c authored by Dave Reid's avatar Dave Reid

#507620 follow-up by Dave Reid: Remove t() from upgrade functions.

parent 3087e18a
......@@ -545,11 +545,10 @@ function xmlsitemap_update_6150() {
$ret = array();
$path = drupal_get_path('module', 'xmlsitemap');
if (is_dir($path . '/xmlsitemap')) {
$t = get_t();
watchdog('xmlsitemap', 'You have not correctly followed the installation instructions for this module. You must make certain that the old xmlsitemap/xmlsitemap diretory is removed. The xmlsitemap/xmlsitemap/xmlsitemap.* files have been moved back to the modules root directory. The install instructions were to remove the modules/xmlsitemap directory completely before extracting the update. If you had followed that step you would have prevented this message.', NULL, WATCHDOG_ERROR);
$ret['#abort'] = array(
'success' => FALSE,
'query' => $t('You have not correctly followed the installation instructions for this module. You must make certain that the old xmlsitemap/xmlsitemap diretory is removed. The xmlsitemap/xmlsitemap/xmlsitemap.* files have been moved back to the modules root directory. The install instructions were to remove the modules/xmlsitemap directory completely before extracting the update. If you had followed that step you would have prevented this message.'),
'query' => 'You have not correctly followed the installation instructions for this module. You must make certain that the old xmlsitemap/xmlsitemap diretory is removed. The xmlsitemap/xmlsitemap/xmlsitemap.* files have been moved back to the modules root directory. The install instructions were to remove the modules/xmlsitemap directory completely before extracting the update. If you had followed that step you would have prevented this message.',
);
}
return $ret;
......
......@@ -98,10 +98,9 @@ function xmlsitemap_engines_update_6108() {
$submitted = variable_get('xmlsitemap_engines_cron_timestamp_submit', FALSE);
if (!$submitted) {
variable_set('xmlsitemap_engines_cron_timestamp_submit', 0);
$t = get_t();
$ret[] = array(
'success' => TRUE,
'query' => $t('Variable "xmlsitemap_engines_cron_timestamp_submit" has been created.'),
'query' => 'Variable "xmlsitemap_engines_cron_timestamp_submit" has been created.',
);
}
return $ret;
......
Markdown is supported
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