diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-17 16:26:12 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-17 16:26:12 +0000 |
commit | 191beee5faceacb38ba1fb913cab5e342304b257 (patch) | |
tree | 0171faec5be386a4f0fdf36330ce20d211767f63 /modules | |
parent | 5272329fbc46206e4a8527026c0a8d33d2c0bc6e (diff) | |
download | brdo-191beee5faceacb38ba1fb913cab5e342304b257.tar.gz brdo-191beee5faceacb38ba1fb913cab5e342304b257.tar.bz2 |
#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
Diffstat (limited to 'modules')
-rw-r--r-- | modules/comment/comment.install | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/comment/comment.install b/modules/comment/comment.install index 35a1e56a6..0cfc026db 100644 --- a/modules/comment/comment.install +++ b/modules/comment/comment.install @@ -1,8 +1,6 @@ <?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, |