Reviewed & tested by the community
Project:
Contact directory
Version:
master
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
5 Aug 2005 at 17:11 UTC
Updated:
25 Oct 2005 at 11:36 UTC
The module doesn't work when installed in sites/somesite/modules (i.e. for a multi-site drupal install), because the module's function _contact_dir_get_fields can't find it's fields.inc file. Here's a simple fix to that function (in the contact_dir.module file) that seems fairly obvious and works so far.
function _contact_dir_get_fields() {
$fields = array();
$config = conf_init();
$inc = 'modules/contact_dir/fields.inc';
if (!file_exists($inc))
$inc = "$config/$inc";
if (file_exists($inc)) {
include_once $inc;
$fields = _contact_dir_fields();
}
return $fields;
}
Comments
Comment #1
aries commentedI can confirm that this patch is working with 4.6.3.