Skip to content
Snippets Groups Projects
Commit 9aa21496 authored by catch's avatar catch
Browse files

Issue #2094335 by andypost: Statistics.php needs a lower bootstrap level.

parent 2e6c6d71
No related branches found
No related tags found
No related merge requests found
......@@ -97,4 +97,5 @@ function testLogging() {
$node_counter = statistics_get($this->node->id());
$this->assertIdentical($node_counter['totalcount'], '1');
}
}
......@@ -11,12 +11,12 @@
// Load the Drupal bootstrap.
require_once dirname(dirname(__DIR__)) . '/vendor/autoload.php';
require_once dirname(dirname(__DIR__)) . '/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_PAGE_CACHE);
drupal_bootstrap(DRUPAL_BOOTSTRAP_KERNEL);
if (\Drupal::config('statistics.settings')->get('count_content_views')) {
$nid = filter_input(INPUT_POST, 'nid', FILTER_VALIDATE_INT);
if ($nid) {
db_merge('node_counter')
\Drupal::database()->merge('node_counter')
->key(array('nid' => $nid))
->fields(array(
'daycount' => 1,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment