Projet

Général

Profil

Révision db2d93dd

Ajouté par Benjamin Luce il y a presque 9 ans

Update to 7.37

Voir les différences:

drupal7/CHANGELOG.txt
1 1

  
2
Drupal 7.37, 2015-05-07
3
-----------------------
4
- Fixed a regression in Drupal 7.36 which caused certain kinds of content types
5
  to become disabled if they were defined by a no-longer-enabled module.
6
- Removed a confusing description regarding automatic time zone detection from
7
  the user account form (minor UI and data structure change).
8
- Allowed custom HTML tags with a dash in the name to pass through filter_xss()
9
  when specified in the list of allowed tags.
10
- Allowed hook_field_schema() implementations to specify indexes for fields
11
  based on a fixed-length column prefix (rather than the entire column), as was
12
  already allowed in hook_schema() implementations.
13
- Fixed PDO exceptions on PostgreSQL when accessing invalid entity URLs.
14
- Added a sites/all/libraries folder to the codebase, with instructions for
15
  using it.
16
- Added a description to the "Administer text formats and filters" permission
17
  on the Permissions page (string change).
18
- Numerous small bug fixes.
19
- Numerous API documentation improvements.
20
- Additional automated test coverage.
21

  
2 22
Drupal 7.36, 2015-04-01
3 23
-----------------------
4 24
- Added a 'file_public_schema' variable which allows modules that define
drupal7/includes/bootstrap.inc
8 8
/**
9 9
 * The current system version.
10 10
 */
11
define('VERSION', '7.36');
11
define('VERSION', '7.37');
12 12

  
13 13
/**
14 14
 * Core API compatibility.
drupal7/includes/common.inc
1522 1522
    return '<';
1523 1523
  }
1524 1524

  
1525
  if (!preg_match('%^<\s*(/\s*)?([a-zA-Z0-9]+)([^>]*)>?|(<!--.*?-->)$%', $string, $matches)) {
1525
  if (!preg_match('%^<\s*(/\s*)?([a-zA-Z0-9\-]+)([^>]*)>?|(<!--.*?-->)$%', $string, $matches)) {
1526 1526
    // Seriously malformed.
1527 1527
    return '';
1528 1528
  }
......
3802 3802

  
3803 3803
  // Replaces @import commands with the actual stylesheet content.
3804 3804
  // This happens recursively but omits external files.
3805
  $contents = preg_replace_callback('/@import\s*(?:url\(\s*)?[\'"]?(?![a-z]+:)([^\'"\()]+)[\'"]?\s*\)?\s*;/', '_drupal_load_stylesheet', $contents);
3805
  $contents = preg_replace_callback('/@import\s*(?:url\(\s*)?[\'"]?(?![a-z]+:)(?!\/\/)([^\'"\()]+)[\'"]?\s*\)?\s*;/', '_drupal_load_stylesheet', $contents);
3806 3806
  return $contents;
3807 3807
}
3808 3808

  
......
7137 7137
  }
7138 7138
}
7139 7139

  
7140
/**
7141
 * Retrieves the type for every field in a table schema.
7142
 *
7143
 * @param $table
7144
 *   The name of the table from which to retrieve type information.
7145
 *
7146
 * @return
7147
 *   An array of types, keyed by field name.
7148
 */
7149
function drupal_schema_field_types($table) {
7150
  $table_schema = drupal_get_schema($table);
7151
  foreach ($table_schema['fields'] as $field_name => $field_info) {
7152
    $field_types[$field_name] = isset($field_info['type']) ? $field_info['type'] : NULL;
7153
  }
7154
  return $field_types;
7155
}
7156

  
7140 7157
/**
7141 7158
 * Retrieves a list of fields from a table schema.
7142 7159
 *
......
7761 7778
        // Prepare entity schema fields SQL info for
7762 7779
        // DrupalEntityControllerInterface::buildQuery().
7763 7780
        if (isset($entity_info[$name]['base table'])) {
7781
          $entity_info[$name]['base table field types'] = drupal_schema_field_types($entity_info[$name]['base table']);
7764 7782
          $entity_info[$name]['schema_fields_sql']['base table'] = drupal_schema_fields_sql($entity_info[$name]['base table']);
7765 7783
          if (isset($entity_info[$name]['revision table'])) {
7766 7784
            $entity_info[$name]['schema_fields_sql']['revision table'] = drupal_schema_fields_sql($entity_info[$name]['revision table']);
drupal7/includes/entity.inc
183 183
      }
184 184
    }
185 185

  
186
    // Ensure integer entity IDs are valid.
187
    if (!empty($ids)) {
188
      $this->cleanIds($ids);
189
    }
190

  
186 191
    // Load any remaining entities from the database. This is the case if $ids
187 192
    // is set to FALSE (so we load all entities), if there are any ids left to
188 193
    // load, if loading a revision, or if $conditions was passed without $ids.
......
223 228
    return $entities;
224 229
  }
225 230

  
231
  /**
232
   * Ensures integer entity IDs are valid.
233
   *
234
   * The identifier sanitization provided by this method has been introduced
235
   * as Drupal used to rely on the database to facilitate this, which worked
236
   * correctly with MySQL but led to errors with other DBMS such as PostgreSQL.
237
   *
238
   * @param array $ids
239
   *   The entity IDs to verify. Non-integer IDs are removed from this array if
240
   *   the entity type requires IDs to be integers.
241
   */
242
  protected function cleanIds(&$ids) {
243
    $entity_info = entity_get_info($this->entityType);
244
    if (isset($entity_info['base table field types'])) {
245
      $id_type = $entity_info['base table field types'][$this->idKey];
246
      if ($id_type == 'serial' || $id_type == 'int') {
247
        $ids = array_filter($ids, array($this, 'filterId'));
248
        $ids = array_map('intval', $ids);
249
      }
250
    }
251
  }
252

  
253
  /**
254
   * Callback for array_filter that removes non-integer IDs.
255
   */
256
  protected function filterId($id) {
257
    return is_numeric($id) && $id == (int) $id;
258
  }
259

  
226 260
  /**
227 261
   * Builds the query to load the entity.
228 262
   *
drupal7/includes/form.inc
2662 2662
 *   - #required: (optional) Whether the user needs to select an option (TRUE)
2663 2663
 *     or not (FALSE). Defaults to FALSE.
2664 2664
 *   - #empty_option: (optional) The label to show for the first default option.
2665
 *     By default, the label is automatically set to "- Please select -" for a
2666
 *     required field and "- None -" for an optional field.
2665
 *     By default, the label is automatically set to "- Select -" for a required
2666
 *     field and "- None -" for an optional field.
2667 2667
 *   - #empty_value: (optional) The value for the first default option, which is
2668 2668
 *     used to determine whether the user submitted a value or not.
2669 2669
 *     - If #required is TRUE, this defaults to '' (an empty string).
drupal7/includes/install.core.inc
362 362
 * Runs an individual installation task.
363 363
 *
364 364
 * @param $task
365
 *   An array of information about the task to be run.
365
 *   An array of information about the task to be run as returned by
366
 *   hook_install_tasks().
366 367
 * @param $install_state
367 368
 *   An array of information about the current installation state. This is
368 369
 *   passed in by reference so that it can be modified by the task.
......
478 479
 * the page request evolves (for example, if an installation profile hasn't
479 480
 * been selected yet, we don't yet know which profile tasks need to be run).
480 481
 *
482
 * You can override this using hook_install_tasks() or
483
 * hook_install_tasks_alter().
484
 *
481 485
 * @param $install_state
482 486
 *   An array of information about the current installation state.
483 487
 *
484 488
 * @return
485
 *   A list of tasks to be performed, with associated metadata.
489
 *   A list of tasks to be performed, with associated metadata as returned by
490
 *   hook_install_tasks().
486 491
 */
487 492
function install_tasks_to_perform($install_state) {
488 493
  // Start with a list of all currently available tasks.
drupal7/modules/aggregator/aggregator.info
7 7
configure = admin/config/services/aggregator/settings
8 8
stylesheets[all][] = aggregator.css
9 9

  
10
; Information added by Drupal.org packaging script on 2015-04-02
11
version = "7.36"
10
; Information added by Drupal.org packaging script on 2015-05-07
11
version = "7.37"
12 12
project = "drupal"
13
datestamp = "1427943826"
13
datestamp = "1430973154"
14 14

  
drupal7/modules/aggregator/tests/aggregator_test.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/block/block.info
6 6
files[] = block.test
7 7
configure = admin/structure/block
8 8

  
9
; Information added by Drupal.org packaging script on 2015-04-02
10
version = "7.36"
9
; Information added by Drupal.org packaging script on 2015-05-07
10
version = "7.37"
11 11
project = "drupal"
12
datestamp = "1427943826"
12
datestamp = "1430973154"
13 13

  
drupal7/modules/block/tests/block_test.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/block/tests/themes/block_test_theme/block_test_theme.info
13 13
regions[highlighted] = Highlighted
14 14
regions[help] = Help
15 15

  
16
; Information added by Drupal.org packaging script on 2015-04-02
17
version = "7.36"
16
; Information added by Drupal.org packaging script on 2015-05-07
17
version = "7.37"
18 18
project = "drupal"
19
datestamp = "1427943826"
19
datestamp = "1430973154"
20 20

  
drupal7/modules/blog/blog.info
5 5
core = 7.x
6 6
files[] = blog.test
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/book/book.info
7 7
configure = admin/content/book/settings
8 8
stylesheets[all][] = book.css
9 9

  
10
; Information added by Drupal.org packaging script on 2015-04-02
11
version = "7.36"
10
; Information added by Drupal.org packaging script on 2015-05-07
11
version = "7.37"
12 12
project = "drupal"
13
datestamp = "1427943826"
13
datestamp = "1430973154"
14 14

  
drupal7/modules/color/color.info
5 5
core = 7.x
6 6
files[] = color.test
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/comment/comment.info
9 9
configure = admin/content/comment
10 10
stylesheets[all][] = comment.css
11 11

  
12
; Information added by Drupal.org packaging script on 2015-04-02
13
version = "7.36"
12
; Information added by Drupal.org packaging script on 2015-05-07
13
version = "7.37"
14 14
project = "drupal"
15
datestamp = "1427943826"
15
datestamp = "1430973154"
16 16

  
drupal7/modules/contact/contact.info
6 6
files[] = contact.test
7 7
configure = admin/structure/contact
8 8

  
9
; Information added by Drupal.org packaging script on 2015-04-02
10
version = "7.36"
9
; Information added by Drupal.org packaging script on 2015-05-07
10
version = "7.37"
11 11
project = "drupal"
12
datestamp = "1427943826"
12
datestamp = "1430973154"
13 13

  
drupal7/modules/contextual/contextual.info
5 5
core = 7.x
6 6
files[] = contextual.test
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/dashboard/dashboard.info
7 7
dependencies[] = block
8 8
configure = admin/dashboard/customize
9 9

  
10
; Information added by Drupal.org packaging script on 2015-04-02
11
version = "7.36"
10
; Information added by Drupal.org packaging script on 2015-05-07
11
version = "7.37"
12 12
project = "drupal"
13
datestamp = "1427943826"
13
datestamp = "1430973154"
14 14

  
drupal7/modules/dblog/dblog.info
5 5
core = 7.x
6 6
files[] = dblog.test
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/field/field.info
11 11
required = TRUE
12 12
stylesheets[all][] = theme/field.css
13 13

  
14
; Information added by Drupal.org packaging script on 2015-04-02
15
version = "7.36"
14
; Information added by Drupal.org packaging script on 2015-05-07
15
version = "7.37"
16 16
project = "drupal"
17
datestamp = "1427943826"
17
datestamp = "1430973154"
18 18

  
drupal7/modules/field/modules/field_sql_storage/field_sql_storage.info
7 7
files[] = field_sql_storage.test
8 8
required = TRUE
9 9

  
10
; Information added by Drupal.org packaging script on 2015-04-02
11
version = "7.36"
10
; Information added by Drupal.org packaging script on 2015-05-07
11
version = "7.37"
12 12
project = "drupal"
13
datestamp = "1427943826"
13
datestamp = "1430973154"
14 14

  
drupal7/modules/field/modules/field_sql_storage/field_sql_storage.module
223 223
  foreach ($field['indexes'] as $index_name => $columns) {
224 224
    $real_name = _field_sql_storage_indexname($field['field_name'], $index_name);
225 225
    foreach ($columns as $column_name) {
226
      $current['indexes'][$real_name][] = _field_sql_storage_columnname($field['field_name'], $column_name);
226
      // Indexes can be specified as either a column name or an array with
227
      // column name and length. Allow for either case.
228
      if (is_array($column_name)) {
229
        $current['indexes'][$real_name][] = array(
230
          _field_sql_storage_columnname($field['field_name'], $column_name[0]),
231
          $column_name[1],
232
        );
233
      }
234
      else {
235
        $current['indexes'][$real_name][] = _field_sql_storage_columnname($field['field_name'], $column_name);
236
      }
227 237
    }
228 238
  }
229 239

  
......
332 342
        $real_name = _field_sql_storage_indexname($field['field_name'], $name);
333 343
        $real_columns = array();
334 344
        foreach ($columns as $column_name) {
335
          $real_columns[] = _field_sql_storage_columnname($field['field_name'], $column_name);
345
          // Indexes can be specified as either a column name or an array with
346
          // column name and length. Allow for either case.
347
          if (is_array($column_name)) {
348
            $real_columns[] = array(
349
              _field_sql_storage_columnname($field['field_name'], $column_name[0]),
350
              $column_name[1],
351
            );
352
          }
353
          else {
354
            $real_columns[] = _field_sql_storage_columnname($field['field_name'], $column_name);
355
          }
336 356
        }
337 357
        db_add_index($table, $real_name, $real_columns);
338 358
        db_add_index($revision_table, $real_name, $real_columns);
drupal7/modules/field/modules/field_sql_storage/field_sql_storage.test
355 355
    field_attach_insert('test_entity', $entity);
356 356

  
357 357
    // Add an index
358
    $field = array('field_name' => $field_name, 'indexes' => array('value' => array('value')));
358
    $field = array('field_name' => $field_name, 'indexes' => array('value' => array(array('value', 255))));
359 359
    field_update_field($field);
360 360
    foreach ($tables as $table) {
361 361
      $this->assertTrue(Database::getConnection()->schema()->indexExists($table, "{$field_name}_value"), format_string("Index on value created in %table", array('%table' => $table)));
362 362
    }
363 363

  
364 364
    // Add a different index, removing the existing custom one.
365
    $field = array('field_name' => $field_name, 'indexes' => array('value_format' => array('value', 'format')));
365
    $field = array('field_name' => $field_name, 'indexes' => array('value_format' => array(array('value', 127), array('format', 127))));
366 366
    field_update_field($field);
367 367
    foreach ($tables as $table) {
368 368
      $this->assertTrue(Database::getConnection()->schema()->indexExists($table, "{$field_name}_value_format"), format_string("Index on value_format created in %table", array('%table' => $table)));
drupal7/modules/field/modules/list/list.info
7 7
dependencies[] = options
8 8
files[] = tests/list.test
9 9

  
10
; Information added by Drupal.org packaging script on 2015-04-02
11
version = "7.36"
10
; Information added by Drupal.org packaging script on 2015-05-07
11
version = "7.37"
12 12
project = "drupal"
13
datestamp = "1427943826"
13
datestamp = "1430973154"
14 14

  
drupal7/modules/field/modules/list/tests/list_test.info
5 5
version = VERSION
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/field/modules/number/number.info
6 6
dependencies[] = field
7 7
files[] = number.test
8 8

  
9
; Information added by Drupal.org packaging script on 2015-04-02
10
version = "7.36"
9
; Information added by Drupal.org packaging script on 2015-05-07
10
version = "7.37"
11 11
project = "drupal"
12
datestamp = "1427943826"
12
datestamp = "1430973154"
13 13

  
drupal7/modules/field/modules/options/options.info
6 6
dependencies[] = field
7 7
files[] = options.test
8 8

  
9
; Information added by Drupal.org packaging script on 2015-04-02
10
version = "7.36"
9
; Information added by Drupal.org packaging script on 2015-05-07
10
version = "7.37"
11 11
project = "drupal"
12
datestamp = "1427943826"
12
datestamp = "1430973154"
13 13

  
drupal7/modules/field/modules/text/text.info
7 7
files[] = text.test
8 8
required = TRUE
9 9

  
10
; Information added by Drupal.org packaging script on 2015-04-02
11
version = "7.36"
10
; Information added by Drupal.org packaging script on 2015-05-07
11
version = "7.37"
12 12
project = "drupal"
13
datestamp = "1427943826"
13
datestamp = "1430973154"
14 14

  
drupal7/modules/field/tests/field_test.info
6 6
version = VERSION
7 7
hidden = TRUE
8 8

  
9
; Information added by Drupal.org packaging script on 2015-04-02
10
version = "7.36"
9
; Information added by Drupal.org packaging script on 2015-05-07
10
version = "7.37"
11 11
project = "drupal"
12
datestamp = "1427943826"
12
datestamp = "1430973154"
13 13

  
drupal7/modules/field_ui/field_ui.info
6 6
dependencies[] = field
7 7
files[] = field_ui.test
8 8

  
9
; Information added by Drupal.org packaging script on 2015-04-02
10
version = "7.36"
9
; Information added by Drupal.org packaging script on 2015-05-07
10
version = "7.37"
11 11
project = "drupal"
12
datestamp = "1427943826"
12
datestamp = "1430973154"
13 13

  
drupal7/modules/file/file.info
6 6
dependencies[] = field
7 7
files[] = tests/file.test
8 8

  
9
; Information added by Drupal.org packaging script on 2015-04-02
10
version = "7.36"
9
; Information added by Drupal.org packaging script on 2015-05-07
10
version = "7.37"
11 11
project = "drupal"
12
datestamp = "1427943826"
12
datestamp = "1430973154"
13 13

  
drupal7/modules/file/tests/file_module_test.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/filter/filter.info
7 7
required = TRUE
8 8
configure = admin/config/content/formats
9 9

  
10
; Information added by Drupal.org packaging script on 2015-04-02
11
version = "7.36"
10
; Information added by Drupal.org packaging script on 2015-05-07
11
version = "7.37"
12 12
project = "drupal"
13
datestamp = "1427943826"
13
datestamp = "1430973154"
14 14

  
drupal7/modules/filter/filter.module
340 340
function filter_permission() {
341 341
  $perms['administer filters'] = array(
342 342
    'title' => t('Administer text formats and filters'),
343
    'description' => t('Define how text is handled by combining filters into <a href="@url">text formats</a>.', array('@url' => url('admin/config/content/formats'))),
343 344
    'restrict access' => TRUE,
344 345
  );
345 346

  
drupal7/modules/filter/filter.test
1148 1148
    // Setup dummy filter object.
1149 1149
    $filter = new stdClass();
1150 1150
    $filter->settings = array(
1151
      'allowed_html' => '<a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>',
1151
      'allowed_html' => '<a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <test-element>',
1152 1152
      'filter_html_help' => 1,
1153 1153
      'filter_html_nofollow' => 0,
1154 1154
    );
......
1184 1184

  
1185 1185
    $f = _filter_html('<code onerror>&nbsp;</code>', $filter);
1186 1186
    $this->assertNoNormalized($f, 'onerror', 'HTML filter should remove empty on* attributes on default.');
1187

  
1188
    // Custom tags are supported and should be allowed through.
1189
    $f = _filter_html('<test-element></test-element>', $filter);
1190
    $this->assertNormalized($f, 'test-element', 'HTML filter should allow custom elements.');
1187 1191
  }
1188 1192

  
1189 1193
  /**
drupal7/modules/forum/forum.info
9 9
configure = admin/structure/forum
10 10
stylesheets[all][] = forum.css
11 11

  
12
; Information added by Drupal.org packaging script on 2015-04-02
13
version = "7.36"
12
; Information added by Drupal.org packaging script on 2015-05-07
13
version = "7.37"
14 14
project = "drupal"
15
datestamp = "1427943826"
15
datestamp = "1430973154"
16 16

  
drupal7/modules/help/help.info
5 5
core = 7.x
6 6
files[] = help.test
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/image/image.info
7 7
files[] = image.test
8 8
configure = admin/config/media/image-styles
9 9

  
10
; Information added by Drupal.org packaging script on 2015-04-02
11
version = "7.36"
10
; Information added by Drupal.org packaging script on 2015-05-07
11
version = "7.37"
12 12
project = "drupal"
13
datestamp = "1427943826"
13
datestamp = "1430973154"
14 14

  
drupal7/modules/image/tests/image_module_test.info
6 6
files[] = image_module_test.module
7 7
hidden = TRUE
8 8

  
9
; Information added by Drupal.org packaging script on 2015-04-02
10
version = "7.36"
9
; Information added by Drupal.org packaging script on 2015-05-07
10
version = "7.37"
11 11
project = "drupal"
12
datestamp = "1427943826"
12
datestamp = "1430973154"
13 13

  
drupal7/modules/locale/locale.info
6 6
files[] = locale.test
7 7
configure = admin/config/regional/language
8 8

  
9
; Information added by Drupal.org packaging script on 2015-04-02
10
version = "7.36"
9
; Information added by Drupal.org packaging script on 2015-05-07
10
version = "7.37"
11 11
project = "drupal"
12
datestamp = "1427943826"
12
datestamp = "1430973154"
13 13

  
drupal7/modules/locale/tests/locale_test.info
5 5
version = VERSION
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/menu/menu.info
6 6
files[] = menu.test
7 7
configure = admin/structure/menu
8 8

  
9
; Information added by Drupal.org packaging script on 2015-04-02
10
version = "7.36"
9
; Information added by Drupal.org packaging script on 2015-05-07
10
version = "7.37"
11 11
project = "drupal"
12
datestamp = "1427943826"
12
datestamp = "1430973154"
13 13

  
drupal7/modules/node/node.info
9 9
configure = admin/structure/types
10 10
stylesheets[all][] = node.css
11 11

  
12
; Information added by Drupal.org packaging script on 2015-04-02
13
version = "7.36"
12
; Information added by Drupal.org packaging script on 2015-05-07
13
version = "7.37"
14 14
project = "drupal"
15
datestamp = "1427943826"
15
datestamp = "1430973154"
16 16

  
drupal7/modules/node/node.install
933 933
  db_add_index('node', 'language', array('language'));
934 934
}
935 935

  
936
/**
937
 * Enable node types that may have been erroneously disabled in Drupal 7.36.
938
 */
939
function node_update_7015() {
940
  db_update('node_type')
941
    ->fields(array('disabled' => 0))
942
    ->condition('base', 'node_content')
943
    ->execute();
944
}
945

  
936 946
/**
937 947
 * @} End of "addtogroup updates-7.x-extra".
938 948
 */
drupal7/modules/node/node.module
740 740
    $type_db = $type_object->type;
741 741
    // Original disabled value.
742 742
    $disabled = $type_object->disabled;
743
    // Check for node types either from disabled modules or otherwise not defined
744
    // and mark as disabled.
745
    if (empty($type_object->custom) && empty($_node_types->types[$type_db])) {
743
    // Check for node types from disabled modules and mark their types for removal.
744
    // Types defined by the node module in the database (rather than by a separate
745
    // module using hook_node_info) have a base value of 'node_content'. The isset()
746
    // check prevents errors on old (pre-Drupal 7) databases.
747
    if (isset($type_object->base) && $type_object->base != 'node_content' && empty($_node_types->types[$type_db])) {
746 748
      $type_object->disabled = TRUE;
747 749
    }
748 750
    if (isset($_node_types->types[$type_db])) {
drupal7/modules/node/tests/node_access_test.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/node/tests/node_test.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/node/tests/node_test_exception.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/openid/openid.info
5 5
core = 7.x
6 6
files[] = openid.test
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/openid/tests/openid_test.info
6 6
dependencies[] = openid
7 7
hidden = TRUE
8 8

  
9
; Information added by Drupal.org packaging script on 2015-04-02
10
version = "7.36"
9
; Information added by Drupal.org packaging script on 2015-05-07
10
version = "7.37"
11 11
project = "drupal"
12
datestamp = "1427943826"
12
datestamp = "1430973154"
13 13

  
drupal7/modules/overlay/overlay.info
4 4
version = VERSION
5 5
core = 7.x
6 6

  
7
; Information added by Drupal.org packaging script on 2015-04-02
8
version = "7.36"
7
; Information added by Drupal.org packaging script on 2015-05-07
8
version = "7.37"
9 9
project = "drupal"
10
datestamp = "1427943826"
10
datestamp = "1430973154"
11 11

  
drupal7/modules/path/path.info
6 6
files[] = path.test
7 7
configure = admin/config/search/path
8 8

  
9
; Information added by Drupal.org packaging script on 2015-04-02
10
version = "7.36"
9
; Information added by Drupal.org packaging script on 2015-05-07
10
version = "7.37"
11 11
project = "drupal"
12
datestamp = "1427943826"
12
datestamp = "1430973154"
13 13

  
drupal7/modules/php/php.info
5 5
core = 7.x
6 6
files[] = php.test
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/poll/poll.info
6 6
files[] = poll.test
7 7
stylesheets[all][] = poll.css
8 8

  
9
; Information added by Drupal.org packaging script on 2015-04-02
10
version = "7.36"
9
; Information added by Drupal.org packaging script on 2015-05-07
10
version = "7.37"
11 11
project = "drupal"
12
datestamp = "1427943826"
12
datestamp = "1430973154"
13 13

  
drupal7/modules/poll/poll.module
191 191
      'base' => 'poll',
192 192
      'description' => t('A <em>poll</em> is a question with a set of possible responses. A <em>poll</em>, once created, automatically provides a simple running count of the number of votes received for each response.'),
193 193
      'title_label' => t('Question'),
194
      'has_body' => FALSE,
195 194
    )
196 195
  );
197 196
}
drupal7/modules/profile/profile.info
11 11
; See user_system_info_alter().
12 12
hidden = TRUE
13 13

  
14
; Information added by Drupal.org packaging script on 2015-04-02
15
version = "7.36"
14
; Information added by Drupal.org packaging script on 2015-05-07
15
version = "7.37"
16 16
project = "drupal"
17
datestamp = "1427943826"
17
datestamp = "1430973154"
18 18

  
drupal7/modules/rdf/rdf.info
5 5
core = 7.x
6 6
files[] = rdf.test
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/rdf/tests/rdf_test.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/search/search.info
8 8
configure = admin/config/search/settings
9 9
stylesheets[all][] = search.css
10 10

  
11
; Information added by Drupal.org packaging script on 2015-04-02
12
version = "7.36"
11
; Information added by Drupal.org packaging script on 2015-05-07
12
version = "7.37"
13 13
project = "drupal"
14
datestamp = "1427943826"
14
datestamp = "1430973154"
15 15

  
drupal7/modules/search/tests/search_embedded_form.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/search/tests/search_extra_type.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/search/tests/search_node_tags.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/shortcut/shortcut.info
6 6
files[] = shortcut.test
7 7
configure = admin/config/user-interface/shortcut
8 8

  
9
; Information added by Drupal.org packaging script on 2015-04-02
10
version = "7.36"
9
; Information added by Drupal.org packaging script on 2015-05-07
10
version = "7.37"
11 11
project = "drupal"
12
datestamp = "1427943826"
12
datestamp = "1430973154"
13 13

  
drupal7/modules/simpletest/drupal_web_test_case.php
2257 2257
            if ($wrapperNode) {
2258 2258
              // ajax.js adds an enclosing DIV to work around a Safari bug.
2259 2259
              $newDom = new DOMDocument();
2260
              // DOM can load HTML soup. But, HTML soup can throw warnings,
2261
              // suppress them.
2260 2262
              $newDom->loadHTML('<div>' . $command['data'] . '</div>');
2261
              $newNode = $dom->importNode($newDom->documentElement->firstChild->firstChild, TRUE);
2263
              // Suppress warnings thrown when duplicate HTML IDs are
2264
              // encountered. This probably means we are replacing an element
2265
              // with the same ID.
2266
              $newNode = @$dom->importNode($newDom->documentElement->firstChild->firstChild, TRUE);
2262 2267
              $method = isset($command['method']) ? $command['method'] : $ajax_settings['method'];
2263 2268
              // The "method" is a jQuery DOM manipulation function. Emulate
2264 2269
              // each one using PHP's DOMNode API.
drupal7/modules/simpletest/files/css_test_files/css_input_with_import.css
1 1

  
2 2

  
3
@import url("http://example.com/style.css");
4
@import url("//example.com/style.css");
3 5
@import "import1.css";
4 6
@import "import2.css";
5 7

  
drupal7/modules/simpletest/files/css_test_files/css_input_with_import.css.optimized.css
1
ul,select{font:1em/160% Verdana,sans-serif;color:#494949;}.ui-icon{background-image:url(images/icon.png);}.data .double-quote{background-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");}.data .single-quote{background-image:url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDACAWGBwYFCAcGhwkIiAmMFA0MCwsMGJGSjpQdGZ6eHJmcG6AkLicgIiuim5woNqirr7EztDOfJri8uDI8LjKzsb/2wBDASIkJDAqMF40NF7GhHCExsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsb/wAARCAABAAEDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAb/xAAUEAEAAAAAAAAAAAAAAAAAAAAA/8QAFAEBAAAAAAAAAAAAAAAAAAAAAP/EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhEDEQA/AKAAH//Z');}.data .no-quote{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAEAQAAAAAo/mtHAAAAIElEQVQIHWMRnWHwcRNLN8NZ7QYWwT8PlBlYsgqVBRsAankIMw5MtnoAAAAASUVORK5CYII=);}
1
@import url("http://example.com/style.css");@import url("//example.com/style.css");ul,select{font:1em/160% Verdana,sans-serif;color:#494949;}.ui-icon{background-image:url(images/icon.png);}.data .double-quote{background-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");}.data .single-quote{background-image:url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDACAWGBwYFCAcGhwkIiAmMFA0MCwsMGJGSjpQdGZ6eHJmcG6AkLicgIiuim5woNqirr7EztDOfJri8uDI8LjKzsb/2wBDASIkJDAqMF40NF7GhHCExsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsbGxsb/wAARCAABAAEDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAb/xAAUEAEAAAAAAAAAAAAAAAAAAAAA/8QAFAEBAAAAAAAAAAAAAAAAAAAAAP/EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhEDEQA/AKAAH//Z');}.data .no-quote{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAEAQAAAAAo/mtHAAAAIElEQVQIHWMRnWHwcRNLN8NZ7QYWwT8PlBlYsgqVBRsAankIMw5MtnoAAAAASUVORK5CYII=);}
2 2
p,select{font:1em/160% Verdana,sans-serif;color:#494949;}
3 3
body{margin:0;padding:0;background:#edf5fa;font:76%/170% Verdana,sans-serif;color:#494949;}.this .is .a .test{font:1em/100% Verdana,sans-serif;color:#494949;}.this
4 4
.is
drupal7/modules/simpletest/files/css_test_files/css_input_with_import.css.unoptimized.css
1 1

  
2 2

  
3
@import url("http://example.com/style.css");
4
@import url("//example.com/style.css");
3 5

  
4 6
ul, select {
5 7
  font: 1em/160% Verdana, sans-serif;
drupal7/modules/simpletest/simpletest.info
56 56
files[] = tests/upgrade/update.field.test
57 57
files[] = tests/upgrade/update.user.test
58 58

  
59
; Information added by Drupal.org packaging script on 2015-04-02
60
version = "7.36"
59
; Information added by Drupal.org packaging script on 2015-05-07
60
version = "7.37"
61 61
project = "drupal"
62
datestamp = "1427943826"
62
datestamp = "1430973154"
63 63

  
drupal7/modules/simpletest/tests/actions_loop_test.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/simpletest/tests/ajax_forms_test.info
5 5
version = VERSION
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/simpletest/tests/ajax_test.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/simpletest/tests/batch_test.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/simpletest/tests/common.test
942 942
   * - Proper URLs in imported files. (https://drupal.org/node/265719)
943 943
   * - Retain pseudo-selectors. (https://drupal.org/node/460448)
944 944
   * - Don't adjust data URIs. (https://drupal.org/node/2142441)
945
   * - Files imported from external URLs. (https://drupal.org/node/2014851)
945 946
   */
946 947
  function testLoadCssBasic() {
947 948
    // Array of files to test living in 'simpletest/files/css_test_files/'.
drupal7/modules/simpletest/tests/common_test.info
7 7
stylesheets[print][] = common_test.print.css
8 8
hidden = TRUE
9 9

  
10
; Information added by Drupal.org packaging script on 2015-04-02
11
version = "7.36"
10
; Information added by Drupal.org packaging script on 2015-05-07
11
version = "7.37"
12 12
project = "drupal"
13
datestamp = "1427943826"
13
datestamp = "1430973154"
14 14

  
drupal7/modules/simpletest/tests/common_test_cron_helper.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/simpletest/tests/database_test.info
5 5
version = VERSION
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/simpletest/tests/drupal_autoload_test/drupal_autoload_test.info
7 7
core = 7.x
8 8
hidden = TRUE
9 9

  
10
; Information added by Drupal.org packaging script on 2015-04-02
11
version = "7.36"
10
; Information added by Drupal.org packaging script on 2015-05-07
11
version = "7.37"
12 12
project = "drupal"
13
datestamp = "1427943826"
13
datestamp = "1430973154"
14 14

  
drupal7/modules/simpletest/tests/drupal_system_listing_compatible_test/drupal_system_listing_compatible_test.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/simpletest/tests/drupal_system_listing_incompatible_test/drupal_system_listing_incompatible_test.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/simpletest/tests/entity_cache_test.info
6 6
dependencies[] = entity_cache_test_dependency
7 7
hidden = TRUE
8 8

  
9
; Information added by Drupal.org packaging script on 2015-04-02
10
version = "7.36"
9
; Information added by Drupal.org packaging script on 2015-05-07
10
version = "7.37"
11 11
project = "drupal"
12
datestamp = "1427943826"
12
datestamp = "1430973154"
13 13

  
drupal7/modules/simpletest/tests/entity_cache_test_dependency.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/simpletest/tests/entity_crud_hook_test.info
5 5
version = VERSION
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/simpletest/tests/entity_query_access_test.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/simpletest/tests/error_test.info
5 5
core = 7.x
6 6
hidden = TRUE
7 7

  
8
; Information added by Drupal.org packaging script on 2015-04-02
9
version = "7.36"
8
; Information added by Drupal.org packaging script on 2015-05-07
9
version = "7.37"
10 10
project = "drupal"
11
datestamp = "1427943826"
11
datestamp = "1430973154"
12 12

  
drupal7/modules/simpletest/tests/file.test
480 480
   * Test file_validate_size().
481 481
   */
482 482
  function testFileValidateSize() {
483
    global $user;
484
    $original_user = $user;
485
    drupal_save_session(FALSE);
486

  
487
    // Run these tests as a regular user.
488
    $user = $this->drupalCreateUser();
489

  
490 483
    // Create a file with a size of 1000 bytes, and quotas of only 1 byte.
491 484
    $file = new stdClass();
492 485
    $file->filesize = 1000;
......
498 491
    $this->assertEqual(count($errors), 1, 'Error for the user being over their limit.', 'File');
499 492
    $errors = file_validate_size($file, 1, 1);
500 493
    $this->assertEqual(count($errors), 2, 'Errors for both the file and their limit.', 'File');
501

  
502
    $user = $original_user;
503
    drupal_save_session(TRUE);
504 494
  }
505 495
}
506 496

  
... Ce différentiel a été tronqué car il excède la taille maximale pouvant être affichée.

Formats disponibles : Unified diff