updated core to 7.54

This commit is contained in:
Bachir Soussi Chiadmi
2017-03-14 18:50:18 +01:00
parent 44557a31f0
commit b9ffb21f32
168 changed files with 1202 additions and 441 deletions

View File

@@ -2521,6 +2521,16 @@ function _system_rebuild_theme_data() {
// Find theme engines
$engines = drupal_system_listing('/^' . DRUPAL_PHP_FUNCTION_PATTERN . '\.engine$/', 'themes/engines');
// Allow modules to add further theme engines.
if ($module_engines = module_invoke_all('system_theme_engine_info')) {
foreach ($module_engines as $name => $theme_engine_path) {
$engines[$name] = (object) array(
'uri' => $theme_engine_path,
'filename' => basename($theme_engine_path),
'name' => $name,
);
}
}
// Set defaults for theme info.
$defaults = array(
@@ -2883,7 +2893,7 @@ function confirm_form($form, $question, $path, $description = NULL, $yes = NULL,
// Prepare cancel link.
if (isset($_GET['destination'])) {
$options = drupal_parse_url(urldecode($_GET['destination']));
$options = drupal_parse_url($_GET['destination']);
}
elseif (is_array($path)) {
$options = $path;