summaryrefslogtreecommitdiff
path: root/modules/update
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-01-30 07:59:26 +0000
committerDries Buytaert <dries@buytaert.net>2010-01-30 07:59:26 +0000
commitea51c3215bc3defc45e87619f7b2232f85895fef (patch)
treedcef9202a1fec6385914c4ee48b13e80c25f3ce2 /modules/update
parent1e8da1f9ae32ccd1c6d19e24215e1cb293e97bbf (diff)
downloadbrdo-ea51c3215bc3defc45e87619f7b2232f85895fef.tar.gz
brdo-ea51c3215bc3defc45e87619f7b2232f85895fef.tar.bz2
- Patch #606526 by axyjo, scor: remove trailing whitespaces and add newlines at end of files.
Diffstat (limited to 'modules/update')
-rw-r--r--modules/update/update.compare.inc2
-rw-r--r--modules/update/update.manager.inc12
-rw-r--r--modules/update/update.report.inc2
3 files changed, 8 insertions, 8 deletions
diff --git a/modules/update/update.compare.inc b/modules/update/update.compare.inc
index 9a7c732f1..1dd0ba586 100644
--- a/modules/update/update.compare.inc
+++ b/modules/update/update.compare.inc
@@ -774,7 +774,7 @@ function update_filter_project_info($info) {
'package',
'project',
'project status url',
- 'version',
+ 'version',
);
return array_intersect_key($info, drupal_map_assoc($whitelist));
}
diff --git a/modules/update/update.manager.inc b/modules/update/update.manager.inc
index cbd53906a..3425ae247 100644
--- a/modules/update/update.manager.inc
+++ b/modules/update/update.manager.inc
@@ -35,7 +35,7 @@
* sets up a batch to copy each extracted update from the temporary location
* into the live web root.
*/
-
+
/**
* @defgroup update_manager_update Update manager for updating existing code.
* @{
@@ -180,7 +180,7 @@ function update_manager_update_form($form, $form_state = array(), $context) {
// Core needs manual updates at this time.
$projects['manual'][$name] = $entry;
break;
-
+
case 'module':
case 'theme':
$projects['enabled'][$name] = $entry;
@@ -547,7 +547,7 @@ function update_manager_install_form_submit($form, &$form_state) {
// @todo: find out if the module is already instealled, if so, throw an error.
$local_cache = $finfo->uri;
}
-
+
$directory = _update_manager_extract_directory();
try {
$archive = update_manager_archive_extract($local_cache, $directory);
@@ -583,12 +583,12 @@ function update_manager_install_form_submit($form, &$form_state) {
if (!$project_title) {
form_set_error($field, t('Unable to determine %project name.', array('%project' => $project)));
}
-
+
if ($updater->isInstalled()) {
form_set_error($field, t('%project is already installed.', array('%project' => $project_title)));
return;
}
-
+
$project_real_location = drupal_realpath($project_location);
$arguments = array(
'project' => $project,
@@ -715,7 +715,7 @@ function update_manager_file_get($url) {
if (!file_exists($cache_directory)) {
mkdir($cache_directory);
}
-
+
if (!file_exists($local)) {
return system_retrieve_file($url, $local);
}
diff --git a/modules/update/update.report.inc b/modules/update/update.report.inc
index 22d70bea8..b33cea897 100644
--- a/modules/update/update.report.inc
+++ b/modules/update/update.report.inc
@@ -197,7 +197,7 @@ function theme_update_report($variables) {
case UPDATE_NOT_SUPPORTED:
$base_themes[] = t('%base_theme (!base_label)', array('%base_theme' => $base_theme, '!base_label' => theme('update_status_label', array('status' => $status[$base_key]))));
break;
-
+
default:
$base_themes[] = drupal_placeholder(array('text' => $base_theme));
}