Commit 191beee5 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#194310 follow up by chx and myself: only load comment module when we can...

#194310 follow up by chx and myself: only load comment module when we can actually do it, and when we need it in comment.install
parent 5272329f
<?php
// $Id$
drupal_load('module', 'comment');
/**
* Implementation of hook_enable().
*/
......@@ -36,6 +34,9 @@ function comment_update_6001() {
* settings to all node types.
*/
function comment_update_6002() {
// Comment module might not be enabled when this is run, but we need the
// constants defined by the module for this update.
drupal_load('module', 'comment');
$settings = array(
'comment_default_mode' => COMMENT_MODE_THREADED_EXPANDED,
'comment_default_order' => COMMENT_ORDER_NEWEST_FIRST,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment