Created
October 10, 2013 14:27
-
-
Save neclimdul/6919270 to your computer and use it in GitHub Desktop.
update.php route
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/core/modules/system/system.module b/core/modules/system/system.module | |
index 5632cce..6ce4653 100644 | |
--- a/core/modules/system/system.module | |
+++ b/core/modules/system/system.module | |
@@ -105,14 +105,16 @@ function system_help($path, $arg) { | |
$output = '<p>' . t('Download additional <a href="@modules">contributed modules</a> to extend Drupal\'s functionality.', array('@modules' => 'http://drupal.org/project/modules')) . '</p>'; | |
if (module_exists('update')) { | |
if (update_manager_access()) { | |
- $output .= '<p>' . t('Regularly review and install <a href="@updates">available updates</a> to maintain a secure and current site. Always run the <a href="@update-php">update script</a> each time a module is updated.', array('@update-php' => $base_url . '/core/update.php', '@updates' => url('admin/reports/updates'))) . '</p>'; | |
+ $output .= '<p>' . t('Regularly review and install <a href="@updates">available updates</a> to maintain a secure and current site. Always run the <a href="@update-php">update script</a> each time a module is updated.', | |
+ array('@update-php' => Drupal::url('system.update'), '@updates' => url('admin/reports/updates'))) . '</p>'; | |
} | |
else { | |
- $output .= '<p>' . t('Regularly review <a href="@updates">available updates</a> to maintain a secure and current site. Always run the <a href="@update-php">update script</a> each time a module is updated.', array('@update-php' => $base_url . '/core/update.php', '@updates' => url('admin/reports/updates'))) . '</p>'; | |
- } | |
+ $output .= '<p>' . t('Regularly review <a href="@updates">available updates</a> to maintain a secure and current site. Always run the <a href="@update-php">update script</a> each time a module is updated.', | |
+ array('@update-php' => Drupal::url('system.update'), '@updates' => url('admin/reports/updates'))) . '</p>'; } | |
} | |
else { | |
- $output .= '<p>' . t('Regularly review available updates to maintain a secure and current site. Always run the <a href="@update-php">update script</a> each time a module is updated. Enable the Update Manager module to update and install modules and themes.', array('@update-php' => $base_url . '/core/update.php')) . '</p>'; | |
+ $output .= '<p>' . t('Regularly review available updates to maintain a secure and current site. Always run the <a href="@update-php">update script</a> each time a module is updated. Enable the Update Manager module to update and install modules and themes.', | |
+ array('@update-php' => Drupal::url('system.update'))) . '</p>'; | |
} | |
return $output; | |
case 'admin/modules/uninstall': | |
diff --git a/core/modules/system/system.routing.yml b/core/modules/system/system.routing.yml | |
index df6c566..6b6b4eb 100644 | |
--- a/core/modules/system/system.routing.yml | |
+++ b/core/modules/system/system.routing.yml | |
@@ -379,3 +379,6 @@ system.localize_date_format: | |
_title: 'Localize date formats' | |
requirements: | |
_permission: 'administer site configuration' | |
+ | |
+system.update: | |
+ path: '/core/update.php' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment