Révision c9e51f47
Ajouté par Julien Enselme il y a environ 7 ans
drupal7/includes/common.inc | ||
---|---|---|
3986 | 3986 |
// be merged with content already on the base page. The HTML IDs must be |
3987 | 3987 |
// unique for the fully merged content. Therefore, initialize $seen_ids to |
3988 | 3988 |
// take into account IDs that are already in use on the base page. |
3989 |
$seen_ids_init = &drupal_static(__FUNCTION__ . ':init'); |
|
3989 |
static $drupal_static_fast; |
|
3990 |
if (!isset($drupal_static_fast['seen_ids_init'])) { |
|
3991 |
$drupal_static_fast['seen_ids_init'] = &drupal_static(__FUNCTION__ . ':init'); |
|
3992 |
} |
|
3993 |
$seen_ids_init = &$drupal_static_fast['seen_ids_init']; |
|
3990 | 3994 |
if (!isset($seen_ids_init)) { |
3991 | 3995 |
// Ideally, Drupal would provide an API to persist state information about |
3992 | 3996 |
// prior page requests in the database, and we'd be able to add this |
... | ... | |
4031 | 4035 |
} |
4032 | 4036 |
} |
4033 | 4037 |
} |
4034 |
$seen_ids = &drupal_static(__FUNCTION__, $seen_ids_init); |
|
4038 |
if (!isset($drupal_static_fast['seen_ids'])) { |
|
4039 |
$drupal_static_fast['seen_ids'] = &drupal_static(__FUNCTION__, $seen_ids_init); |
|
4040 |
} |
|
4041 |
$seen_ids = &$drupal_static_fast['seen_ids']; |
|
4035 | 4042 |
|
4036 | 4043 |
$id = strtr(drupal_strtolower($id), array(' ' => '-', '_' => '-', '[' => '-', ']' => '')); |
4037 | 4044 |
|
Formats disponibles : Unified diff
Udpate to 7.54