Skip to content

Commit

Permalink
Upgrade to Drupal 7.60
Browse files Browse the repository at this point in the history
  • Loading branch information
benscott committed Oct 22, 2018
1 parent e1af400 commit 99c038d
Show file tree
Hide file tree
Showing 137 changed files with 467 additions and 430 deletions.
2 changes: 1 addition & 1 deletion includes/bootstrap.inc
Expand Up @@ -8,7 +8,7 @@
/**
* The current system version.
*/
define('VERSION', '7.59');
define('VERSION', '7.60');

/**
* Core API compatibility.
Expand Down
35 changes: 12 additions & 23 deletions includes/common.inc
Expand Up @@ -2311,7 +2311,10 @@ function url($path = NULL, array $options = array()) {
$language = isset($options['language']) && isset($options['language']->language) ? $options['language']->language : '';
$alias = drupal_get_path_alias($original_path, $language);
if ($alias != $original_path) {
$path = $alias;
// Strip leading slashes from internal path aliases to prevent them
// becoming external URLs without protocol. /example.com should not be
// turned into //example.com.
$path = ltrim($alias, '/');
}
}

Expand Down Expand Up @@ -5530,11 +5533,6 @@ function drupal_cron_cleanup() {
* - 'name': Name of file without the extension.
*/
function drupal_system_listing($mask, $directory, $key = 'name', $min_depth = 1) {
$cid = "drupal_system_listing|$mask|$directory|$key|$min_depth";
$cache = cache_get($cid);
if(!empty($cache->data)){
return $cache->data;
}
$config = conf_path();

$searchdir = array($directory);
Expand Down Expand Up @@ -5602,7 +5600,7 @@ function drupal_system_listing($mask, $directory, $key = 'name', $min_depth = 1)
}
$files = array_merge($files, $files_to_add);
}
cache_set($cid, $files, 'cache', time() + 604800);

return $files;
}

Expand Down Expand Up @@ -7478,18 +7476,12 @@ function drupal_parse_info_file($filename) {
$info = &drupal_static(__FUNCTION__, array());

if (!isset($info[$filename])) {
$cache = cache_get(__FUNCTION__);
if(empty($cache->data) || empty($cache->data[$filename])){
if (!file_exists($filename)) {
$info[$filename] = array();
}
else {
$data = file_get_contents($filename);
$info[$filename] = drupal_parse_info_format($data);
}
cache_set(__FUNCTION__, $info, 'cache', time() + 604800);
} else {
$info = $cache->data;
if (!file_exists($filename)) {
$info[$filename] = array();
}
else {
$data = file_get_contents($filename);
$info[$filename] = drupal_parse_info_format($data);
}
}
return $info[$filename];
Expand Down Expand Up @@ -7836,17 +7828,14 @@ function drupal_check_incompatibility($v, $current_version) {
* @see hook_entity_info()
* @see hook_entity_info_alter()
*/
function entity_get_info($entity_type = NULL, $reset = FALSE) {
function entity_get_info($entity_type = NULL) {
global $language;

// Use the advanced drupal_static() pattern, since this is called very often.
static $drupal_static_fast;
if (!isset($drupal_static_fast)) {
$drupal_static_fast['entity_info'] = &drupal_static(__FUNCTION__);
}
if($reset){
$drupal_static_fast = NULL;
}
$entity_info = &$drupal_static_fast['entity_info'];

// hook_entity_info() includes translated strings, so each language is cached
Expand Down
2 changes: 0 additions & 2 deletions includes/database/mysql/schema.inc
Expand Up @@ -100,8 +100,6 @@ class DatabaseSchema_mysql extends DatabaseSchema {

// Remove the last comma and space.
$sql = substr($sql, 0, -3) . "\n) ";

$sql .= 'ROW_FORMAT=DYNAMIC ';

$sql .= 'ENGINE = ' . $table['mysql_engine'] . ' DEFAULT CHARACTER SET ' . $table['mysql_character_set'];
// By default, MySQL uses the default collation for new tables, which is
Expand Down
4 changes: 1 addition & 3 deletions includes/file.inc
Expand Up @@ -611,9 +611,7 @@ function file_load($fid) {
*/
function file_save(stdClass $file) {
$file->timestamp = REQUEST_TIME;
if(empty($file->filesize) || (function_exists('file_entity_file_is_local') && file_entity_file_is_local($file))){
$file->filesize = filesize($file->uri);
}
$file->filesize = filesize($file->uri);

// Load the stored entity, if any.
if (!empty($file->fid) && !isset($file->original)) {
Expand Down
6 changes: 3 additions & 3 deletions modules/aggregator/aggregator.info
Expand Up @@ -7,7 +7,7 @@ files[] = aggregator.test
configure = admin/config/services/aggregator/settings
stylesheets[all][] = aggregator.css

; Information added by Drupal.org packaging script on 2018-04-25
version = "7.59"
; Information added by Drupal.org packaging script on 2018-10-17
version = "7.60"
project = "drupal"
datestamp = "1524673284"
datestamp = "1539816636"
6 changes: 3 additions & 3 deletions modules/aggregator/tests/aggregator_test.info
Expand Up @@ -5,7 +5,7 @@ version = VERSION
core = 7.x
hidden = TRUE

; Information added by Drupal.org packaging script on 2018-04-25
version = "7.59"
; Information added by Drupal.org packaging script on 2018-10-17
version = "7.60"
project = "drupal"
datestamp = "1524673284"
datestamp = "1539816636"
6 changes: 3 additions & 3 deletions modules/block/block.info
Expand Up @@ -6,7 +6,7 @@ core = 7.x
files[] = block.test
configure = admin/structure/block

; Information added by Drupal.org packaging script on 2018-04-25
version = "7.59"
; Information added by Drupal.org packaging script on 2018-10-17
version = "7.60"
project = "drupal"
datestamp = "1524673284"
datestamp = "1539816636"
6 changes: 3 additions & 3 deletions modules/block/tests/block_test.info
Expand Up @@ -5,7 +5,7 @@ version = VERSION
core = 7.x
hidden = TRUE

; Information added by Drupal.org packaging script on 2018-04-25
version = "7.59"
; Information added by Drupal.org packaging script on 2018-10-17
version = "7.60"
project = "drupal"
datestamp = "1524673284"
datestamp = "1539816636"
Expand Up @@ -13,7 +13,7 @@ regions[footer] = Footer
regions[highlighted] = Highlighted
regions[help] = Help

; Information added by Drupal.org packaging script on 2018-04-25
version = "7.59"
; Information added by Drupal.org packaging script on 2018-10-17
version = "7.60"
project = "drupal"
datestamp = "1524673284"
datestamp = "1539816636"
6 changes: 3 additions & 3 deletions modules/blog/blog.info
Expand Up @@ -5,7 +5,7 @@ version = VERSION
core = 7.x
files[] = blog.test

; Information added by Drupal.org packaging script on 2018-04-25
version = "7.59"
; Information added by Drupal.org packaging script on 2018-10-17
version = "7.60"
project = "drupal"
datestamp = "1524673284"
datestamp = "1539816636"
6 changes: 3 additions & 3 deletions modules/book/book.info
Expand Up @@ -7,7 +7,7 @@ files[] = book.test
configure = admin/content/book/settings
stylesheets[all][] = book.css

; Information added by Drupal.org packaging script on 2018-04-25
version = "7.59"
; Information added by Drupal.org packaging script on 2018-10-17
version = "7.60"
project = "drupal"
datestamp = "1524673284"
datestamp = "1539816636"
6 changes: 3 additions & 3 deletions modules/color/color.info
Expand Up @@ -5,7 +5,7 @@ version = VERSION
core = 7.x
files[] = color.test

; Information added by Drupal.org packaging script on 2018-04-25
version = "7.59"
; Information added by Drupal.org packaging script on 2018-10-17
version = "7.60"
project = "drupal"
datestamp = "1524673284"
datestamp = "1539816636"
6 changes: 3 additions & 3 deletions modules/comment/comment.info
Expand Up @@ -9,7 +9,7 @@ files[] = comment.test
configure = admin/content/comment
stylesheets[all][] = comment.css

; Information added by Drupal.org packaging script on 2018-04-25
version = "7.59"
; Information added by Drupal.org packaging script on 2018-10-17
version = "7.60"
project = "drupal"
datestamp = "1524673284"
datestamp = "1539816636"
6 changes: 3 additions & 3 deletions modules/contact/contact.info
Expand Up @@ -6,7 +6,7 @@ core = 7.x
files[] = contact.test
configure = admin/structure/contact

; Information added by Drupal.org packaging script on 2018-04-25
version = "7.59"
; Information added by Drupal.org packaging script on 2018-10-17
version = "7.60"
project = "drupal"
datestamp = "1524673284"
datestamp = "1539816636"
6 changes: 3 additions & 3 deletions modules/contextual/contextual.info
Expand Up @@ -5,7 +5,7 @@ version = VERSION
core = 7.x
files[] = contextual.test

; Information added by Drupal.org packaging script on 2018-04-25
version = "7.59"
; Information added by Drupal.org packaging script on 2018-10-17
version = "7.60"
project = "drupal"
datestamp = "1524673284"
datestamp = "1539816636"
6 changes: 3 additions & 3 deletions modules/dashboard/dashboard.info
Expand Up @@ -7,7 +7,7 @@ files[] = dashboard.test
dependencies[] = block
configure = admin/dashboard/customize

; Information added by Drupal.org packaging script on 2018-04-25
version = "7.59"
; Information added by Drupal.org packaging script on 2018-10-17
version = "7.60"
project = "drupal"
datestamp = "1524673284"
datestamp = "1539816636"
6 changes: 3 additions & 3 deletions modules/dblog/dblog.info
Expand Up @@ -5,7 +5,7 @@ version = VERSION
core = 7.x
files[] = dblog.test

; Information added by Drupal.org packaging script on 2018-04-25
version = "7.59"
; Information added by Drupal.org packaging script on 2018-10-17
version = "7.60"
project = "drupal"
datestamp = "1524673284"
datestamp = "1539816636"
6 changes: 3 additions & 3 deletions modules/field/field.info
Expand Up @@ -11,7 +11,7 @@ dependencies[] = field_sql_storage
required = TRUE
stylesheets[all][] = theme/field.css

; Information added by Drupal.org packaging script on 2018-04-25
version = "7.59"
; Information added by Drupal.org packaging script on 2018-10-17
version = "7.60"
project = "drupal"
datestamp = "1524673284"
datestamp = "1539816636"
Expand Up @@ -7,7 +7,7 @@ dependencies[] = field
files[] = field_sql_storage.test
required = TRUE

; Information added by Drupal.org packaging script on 2018-04-25
version = "7.59"
; Information added by Drupal.org packaging script on 2018-10-17
version = "7.60"
project = "drupal"
datestamp = "1524673284"
datestamp = "1539816636"
6 changes: 3 additions & 3 deletions modules/field/modules/list/list.info
Expand Up @@ -7,7 +7,7 @@ dependencies[] = field
dependencies[] = options
files[] = tests/list.test

; Information added by Drupal.org packaging script on 2018-04-25
version = "7.59"
; Information added by Drupal.org packaging script on 2018-10-17
version = "7.60"
project = "drupal"
datestamp = "1524673284"
datestamp = "1539816636"
6 changes: 3 additions & 3 deletions modules/field/modules/list/tests/list_test.info
Expand Up @@ -5,7 +5,7 @@ package = Testing
version = VERSION
hidden = TRUE

; Information added by Drupal.org packaging script on 2018-04-25
version = "7.59"
; Information added by Drupal.org packaging script on 2018-10-17
version = "7.60"
project = "drupal"
datestamp = "1524673284"
datestamp = "1539816636"
6 changes: 3 additions & 3 deletions modules/field/modules/number/number.info
Expand Up @@ -6,7 +6,7 @@ core = 7.x
dependencies[] = field
files[] = number.test

; Information added by Drupal.org packaging script on 2018-04-25
version = "7.59"
; Information added by Drupal.org packaging script on 2018-10-17
version = "7.60"
project = "drupal"
datestamp = "1524673284"
datestamp = "1539816636"
6 changes: 3 additions & 3 deletions modules/field/modules/options/options.info
Expand Up @@ -6,7 +6,7 @@ core = 7.x
dependencies[] = field
files[] = options.test

; Information added by Drupal.org packaging script on 2018-04-25
version = "7.59"
; Information added by Drupal.org packaging script on 2018-10-17
version = "7.60"
project = "drupal"
datestamp = "1524673284"
datestamp = "1539816636"
6 changes: 3 additions & 3 deletions modules/field/modules/text/text.info
Expand Up @@ -7,7 +7,7 @@ dependencies[] = field
files[] = text.test
required = TRUE

; Information added by Drupal.org packaging script on 2018-04-25
version = "7.59"
; Information added by Drupal.org packaging script on 2018-10-17
version = "7.60"
project = "drupal"
datestamp = "1524673284"
datestamp = "1539816636"
6 changes: 3 additions & 3 deletions modules/field/tests/field_test.info
Expand Up @@ -6,7 +6,7 @@ files[] = field_test.entity.inc
version = VERSION
hidden = TRUE

; Information added by Drupal.org packaging script on 2018-04-25
version = "7.59"
; Information added by Drupal.org packaging script on 2018-10-17
version = "7.60"
project = "drupal"
datestamp = "1524673284"
datestamp = "1539816636"
6 changes: 3 additions & 3 deletions modules/field_ui/field_ui.info
Expand Up @@ -6,7 +6,7 @@ core = 7.x
dependencies[] = field
files[] = field_ui.test

; Information added by Drupal.org packaging script on 2018-04-25
version = "7.59"
; Information added by Drupal.org packaging script on 2018-10-17
version = "7.60"
project = "drupal"
datestamp = "1524673284"
datestamp = "1539816636"
6 changes: 3 additions & 3 deletions modules/file/file.info
Expand Up @@ -6,7 +6,7 @@ core = 7.x
dependencies[] = field
files[] = tests/file.test

; Information added by Drupal.org packaging script on 2018-04-25
version = "7.59"
; Information added by Drupal.org packaging script on 2018-10-17
version = "7.60"
project = "drupal"
datestamp = "1524673284"
datestamp = "1539816636"
6 changes: 3 additions & 3 deletions modules/file/tests/file_module_test.info
Expand Up @@ -5,7 +5,7 @@ version = VERSION
core = 7.x
hidden = TRUE

; Information added by Drupal.org packaging script on 2018-04-25
version = "7.59"
; Information added by Drupal.org packaging script on 2018-10-17
version = "7.60"
project = "drupal"
datestamp = "1524673284"
datestamp = "1539816636"
6 changes: 3 additions & 3 deletions modules/filter/filter.info
Expand Up @@ -7,7 +7,7 @@ files[] = filter.test
required = TRUE
configure = admin/config/content/formats

; Information added by Drupal.org packaging script on 2018-04-25
version = "7.59"
; Information added by Drupal.org packaging script on 2018-10-17
version = "7.60"
project = "drupal"
datestamp = "1524673284"
datestamp = "1539816636"
6 changes: 3 additions & 3 deletions modules/forum/forum.info
Expand Up @@ -9,7 +9,7 @@ files[] = forum.test
configure = admin/structure/forum
stylesheets[all][] = forum.css

; Information added by Drupal.org packaging script on 2018-04-25
version = "7.59"
; Information added by Drupal.org packaging script on 2018-10-17
version = "7.60"
project = "drupal"
datestamp = "1524673284"
datestamp = "1539816636"

0 comments on commit 99c038d

Please sign in to comment.