Projet

Général

Profil

Révision 582db59d

Ajouté par Assos Assos il y a plus de 8 ans

Update Drupal core to version 7.40

Voir les différences:

drupal7/modules/statistics/statistics.php
15 15
include_once DRUPAL_ROOT . '/includes/bootstrap.inc';
16 16
drupal_bootstrap(DRUPAL_BOOTSTRAP_VARIABLES);
17 17
if (variable_get('statistics_count_content_views', 0) && variable_get('statistics_count_content_views_ajax', 0)) {
18
  $nid = $_POST['nid'];
19
  if (is_numeric($nid)) {
20
    db_merge('node_counter')
21
      ->key(array('nid' => $nid))
22
      ->fields(array(
23
        'daycount' => 1,
24
        'totalcount' => 1,
25
        'timestamp' => REQUEST_TIME,
26
      ))
27
      ->expression('daycount', 'daycount + 1')
28
      ->expression('totalcount', 'totalcount + 1')
29
      ->execute();
18
  if (isset($_POST['nid'])) {
19
    $nid = $_POST['nid'];
20
    if (is_numeric($nid)) {
21
      db_merge('node_counter')
22
        ->key(array('nid' => $nid))
23
        ->fields(array(
24
          'daycount' => 1,
25
          'totalcount' => 1,
26
          'timestamp' => REQUEST_TIME,
27
        ))
28
        ->expression('daycount', 'daycount + 1')
29
        ->expression('totalcount', 'totalcount + 1')
30
        ->execute();
31
    }
30 32
  }
31 33
}

Formats disponibles : Unified diff