summaryrefslogtreecommitdiff
path: root/modules/update
diff options
context:
space:
mode:
Diffstat (limited to 'modules/update')
-rw-r--r--modules/update/update.compare.inc2
-rw-r--r--modules/update/update.fetch.inc4
-rw-r--r--modules/update/update.module24
-rw-r--r--modules/update/update.report.inc40
4 files changed, 35 insertions, 35 deletions
diff --git a/modules/update/update.compare.inc b/modules/update/update.compare.inc
index a0cf66c3f..826f36a65 100644
--- a/modules/update/update.compare.inc
+++ b/modules/update/update.compare.inc
@@ -69,7 +69,7 @@ function _update_process_info_list(&$projects, $list, $project_type) {
// which is left alone by tar and correctly set to the time the .info file
// was unpacked.
if (!isset($file->info['_info_file_ctime'])) {
- $info_filename = dirname($file->filename) .'/'. $file->name .'.info';
+ $info_filename = dirname($file->filename) . '/' . $file->name . '.info';
$file->info['_info_file_ctime'] = filectime($info_filename);
}
diff --git a/modules/update/update.fetch.inc b/modules/update/update.fetch.inc
index 3edda9cd1..17cf06f48 100644
--- a/modules/update/update.fetch.inc
+++ b/modules/update/update.fetch.inc
@@ -85,7 +85,7 @@ function _update_build_fetch_url($project, $site_key = '') {
}
$name = $project['name'];
$url = $project['info']['project status url'];
- $url .= '/'. $name .'/'. DRUPAL_CORE_COMPATIBILITY;
+ $url .= '/' . $name . '/' . DRUPAL_CORE_COMPATIBILITY;
if (!empty($site_key)) {
$url .= (strpos($url, '?') === TRUE) ? '&' : '?';
$url .= 'site_key=';
@@ -112,7 +112,7 @@ function _update_cron_notify() {
$status = update_requirements('runtime');
$params = array();
foreach (array('core', 'contrib') as $report_type) {
- $type = 'update_'. $report_type;
+ $type = 'update_' . $report_type;
if (isset($status[$type]['severity'])
&& $status[$type]['severity'] == REQUIREMENT_ERROR) {
$params[$report_type] = $status[$type]['reason'];
diff --git a/modules/update/update.module b/modules/update/update.module
index 855f73704..92a8ca586 100644
--- a/modules/update/update.module
+++ b/modules/update/update.module
@@ -58,15 +58,15 @@ define('UPDATE_UNKNOWN', -2);
function update_help($path, $arg) {
switch ($path) {
case 'admin/reports/updates':
- $output = '<p>'. t('Here you can find information about available updates for your installed modules and themes. Note that each module or theme is part of a "project", which may or may not have the same name, and might include multiple modules or themes within it.') .'</p>';
- $output .= '<p>'. t('To extend the functionality or to change the look of your site, a number of contributed <a href="@modules">modules</a> and <a href="@themes">themes</a> are available.', array('@modules' => 'http://drupal.org/project/modules', '@themes' => 'http://drupal.org/project/themes')) .'</p>';
+ $output = '<p>' . t('Here you can find information about available updates for your installed modules and themes. Note that each module or theme is part of a "project", which may or may not have the same name, and might include multiple modules or themes within it.') . '</p>';
+ $output .= '<p>' . t('To extend the functionality or to change the look of your site, a number of contributed <a href="@modules">modules</a> and <a href="@themes">themes</a> are available.', array('@modules' => 'http://drupal.org/project/modules', '@themes' => 'http://drupal.org/project/themes')) . '</p>';
return $output;
case 'admin/build/themes':
case 'admin/build/modules':
include_once './includes/install.inc';
$status = update_requirements('runtime');
foreach (array('core', 'contrib') as $report_type) {
- $type = 'update_'. $report_type;
+ $type = 'update_' . $report_type;
if (isset($status[$type]['severity'])) {
if ($status[$type]['severity'] == REQUIREMENT_ERROR) {
drupal_set_message($status[$type]['description'], 'error');
@@ -76,7 +76,7 @@ function update_help($path, $arg) {
}
}
}
- return '<p>'. t('See the <a href="@available_updates">available updates</a> page for information on installed modules and themes with new versions released.', array('@available_updates' => url('admin/reports/updates'))) .'</p>';
+ return '<p>' . t('See the <a href="@available_updates">available updates</a> page for information on installed modules and themes with new versions released.', array('@available_updates' => url('admin/reports/updates'))) . '</p>';
case 'admin/reports/updates/settings':
case 'admin/reports/status':
@@ -84,10 +84,10 @@ function update_help($path, $arg) {
break;
case 'admin/help#update':
- $output = '<p>'. t("The Update status module periodically checks for new versions of your site's software (including contributed modules and themes), and alerts you to available updates.") .'</p>';
- $output .= '<p>'. t('The <a href="@update-report">report of available updates</a> will alert you when new releases are available for download. You may configure options for update checking frequency and notifications at the <a href="@update-settings">Update status module settings page</a>.', array('@update-report' => url('admin/reports/updates'), '@update-settings' => url('admin/reports/updates/settings'))) .'</p>';
- $output .= '<p>'. t('Please note that in order to provide this information, anonymous usage statistics are sent to drupal.org. If desired, you may disable the Update status module from the <a href="@modules">module administration page</a>.', array('@modules' => url('admin/build/modules'))) .'</p>';
- $output .= '<p>'. t('For more information, see the online handbook entry for <a href="@update">Update status module</a>.', array('@update' => 'http://drupal.org/handbook/modules/update')) .'</p>';
+ $output = '<p>' . t("The Update status module periodically checks for new versions of your site's software (including contributed modules and themes), and alerts you to available updates.") . '</p>';
+ $output .= '<p>' . t('The <a href="@update-report">report of available updates</a> will alert you when new releases are available for download. You may configure options for update checking frequency and notifications at the <a href="@update-settings">Update status module settings page</a>.', array('@update-report' => url('admin/reports/updates'), '@update-settings' => url('admin/reports/updates/settings'))) . '</p>';
+ $output .= '<p>' . t('Please note that in order to provide this information, anonymous usage statistics are sent to drupal.org. If desired, you may disable the Update status module from the <a href="@modules">module administration page</a>.', array('@modules' => url('admin/build/modules'))) . '</p>';
+ $output .= '<p>' . t('For more information, see the online handbook entry for <a href="@update">Update status module</a>.', array('@update' => 'http://drupal.org/handbook/modules/update')) . '</p>';
return $output;
default:
@@ -98,7 +98,7 @@ function update_help($path, $arg) {
include_once './includes/install.inc';
$status = update_requirements('runtime');
foreach (array('core', 'contrib') as $report_type) {
- $type = 'update_'. $report_type;
+ $type = 'update_' . $report_type;
if (isset($status[$type])
&& isset($status[$type]['reason'])
&& $status[$type]['reason'] === UPDATE_NOT_SECURE) {
@@ -274,7 +274,7 @@ function _update_requirement_check($project, $type) {
$requirement_label = t('Up to date');
}
if ($status != UPDATE_CURRENT && $type == 'core' && isset($project['recommended'])) {
- $requirement_label .= ' '. t('(version @version available)', array('@version' => $project['recommended']));
+ $requirement_label .= ' ' . t('(version @version available)', array('@version' => $project['recommended']));
}
$requirement['value'] = l($requirement_label, 'admin/reports/updates');
return $requirement;
@@ -416,7 +416,7 @@ function update_mail($key, &$message, $params) {
foreach ($params as $msg_type => $msg_reason) {
$message['body'][] = _update_message_text($msg_type, $msg_reason, FALSE, $language);
}
- $message['body'][] = t('See the available updates page for more information:', array(), $langcode) ."\n". url('admin/reports/updates', array('absolute' => TRUE, 'language' => $language));
+ $message['body'][] = t('See the available updates page for more information:', array(), $langcode) . "\n" . url('admin/reports/updates', array('absolute' => TRUE, 'language' => $language));
}
/**
@@ -491,7 +491,7 @@ function _update_message_text($msg_type, $msg_reason, $report_link = FALSE, $lan
}
if ($report_link) {
- $text .= ' '. t('See the <a href="@available_updates">available updates</a> page for more information.', array('@available_updates' => url('admin/reports/updates', array('language' => $language))), $langcode);
+ $text .= ' ' . t('See the <a href="@available_updates">available updates</a> page for more information.', array('@available_updates' => url('admin/reports/updates', array('language' => $language))), $langcode);
}
return $text;
diff --git a/modules/update/update.report.inc b/modules/update/update.report.inc
index 77e9c2c68..6bc2ff1cd 100644
--- a/modules/update/update.report.inc
+++ b/modules/update/update.report.inc
@@ -27,12 +27,12 @@ function update_status() {
*/
function theme_update_report($data) {
$last = variable_get('update_last_check', 0);
- $output = '<div class="update checked">'. ($last ? t('Last checked: @time ago', array('@time' => format_interval(time() - $last))) : t('Last checked: never'));
- $output .= ' <span class="check-manually">('. l(t('Check manually'), 'admin/reports/updates/check') .')</span>';
+ $output = '<div class="update checked">' . ($last ? t('Last checked: @time ago', array('@time' => format_interval(time() - $last))) : t('Last checked: never'));
+ $output .= ' <span class="check-manually">(' . l(t('Check manually'), 'admin/reports/updates/check') . ')</span>';
$output .= "</div>\n";
if (!is_array($data)) {
- $output .= '<p>'. $data .'</p>';
+ $output .= '<p>' . $data . '</p>';
return $output;
}
@@ -67,25 +67,25 @@ function theme_update_report($data) {
$row = '<div class="version-status">';
switch ($project['status']) {
case UPDATE_NOT_SECURE:
- $row .= '<span class="security-error">'. t('Security update required!') .'</span>';
+ $row .= '<span class="security-error">' . t('Security update required!') . '</span>';
break;
case UPDATE_REVOKED:
- $row .= '<span class="revoked">'. t('Revoked!') .'</span>';
+ $row .= '<span class="revoked">' . t('Revoked!') . '</span>';
break;
case UPDATE_NOT_SUPPORTED:
- $row .= '<span class="not-supported">'. t('Not supported!') .'</span>';
+ $row .= '<span class="not-supported">' . t('Not supported!') . '</span>';
break;
case UPDATE_NOT_CURRENT:
- $row .= '<span class="not-current">'. t('Update available') .'</span>';
+ $row .= '<span class="not-current">' . t('Update available') . '</span>';
break;
case UPDATE_CURRENT:
- $row .= '<span class="current">'. t('Up to date') .'</span>';
+ $row .= '<span class="current">' . t('Up to date') . '</span>';
break;
default:
$row .= check_plain($project['reason']);
break;
}
- $row .= '<span class="icon">'. $icon .'</span>';
+ $row .= '<span class="icon">' . $icon . '</span>';
$row .= "</div>\n";
$row .= '<div class="project">';
@@ -100,9 +100,9 @@ function theme_update_report($data) {
else {
$row .= check_plain($project['name']);
}
- $row .= ' '. check_plain($project['existing_version']);
+ $row .= ' ' . check_plain($project['existing_version']);
if ($project['install_type'] == 'dev' && !empty($project['datestamp'])) {
- $row .= ' <span class="version-date">('. format_date($project['datestamp'], 'custom', 'Y-M-d') .')</span>';
+ $row .= ' <span class="version-date">(' . format_date($project['datestamp'], 'custom', 'Y-M-d') . ')</span>';
}
$row .= "</div>\n";
@@ -140,7 +140,7 @@ function theme_update_report($data) {
// Now, print any security updates.
if (!empty($project['security updates'])) {
foreach ($project['security updates'] as $security_update) {
- $row .= theme('update_version', $security_update, t('Security update:'), 'version-security'. $security_class);
+ $row .= theme('update_version', $security_update, t('Security update:'), 'version-security' . $security_class);
}
}
}
@@ -166,10 +166,10 @@ function theme_update_report($data) {
$row .= "<div class=\"info\">\n";
if (!empty($project['extra'])) {
- $row .= '<div class="extra">'."\n";
+ $row .= '<div class="extra">' . "\n";
foreach ($project['extra'] as $key => $value) {
- $row .= '<div class="'. $value['class'] .'">';
- $row .= check_plain($value['label']) .': ';
+ $row .= '<div class="' . $value['class'] . '">';
+ $row .= check_plain($value['label']) . ': ';
$row .= theme('placeholder', $value['data']);
$row .= "</div>\n";
}
@@ -201,11 +201,11 @@ function theme_update_report($data) {
);
foreach ($project_types as $type_name => $type_label) {
if (!empty($rows[$type_name])) {
- $output .= "\n<h3>". $type_label ."</h3>\n";
+ $output .= "\n<h3>" . $type_label . "</h3>\n";
$output .= theme('table', $header, $rows[$type_name], array('class' => 'update'));
}
}
- drupal_add_css(drupal_get_path('module', 'update') .'/update.css');
+ drupal_add_css(drupal_get_path('module', 'update') . '/update.css');
return $output;
}
@@ -216,12 +216,12 @@ function theme_update_report($data) {
*/
function theme_update_version($version, $tag, $class) {
$output = '';
- $output .= '<table class="version '. $class .'">';
+ $output .= '<table class="version ' . $class . '">';
$output .= '<tr>';
- $output .= '<td class="version-title">'. $tag ."</td>\n";
+ $output .= '<td class="version-title">' . $tag . "</td>\n";
$output .= '<td class="version-details">';
$output .= l($version['version'], $version['release_link']);
- $output .= ' <span class="version-date">('. format_date($version['date'], 'custom', 'Y-M-d') .')</span>';
+ $output .= ' <span class="version-date">(' . format_date($version['date'], 'custom', 'Y-M-d') . ')</span>';
$output .= "</td>\n";
$output .= '<td class="version-links">';
$links = array();