Download & Extend

Activity fails to include the file when path isn't set

Project:Activity
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

<?php
       
// Set the defaults. Not all modules implement the full api
       
if (!isset($info->path)) {
         
$info->path = drupal_get_path('module', $module);
        }
        elseif (
file_exists('./'. $info->path .'/'. $module .'.activity.inc')) {
          require_once
'./'. $info->path .'/'. $module .'.activity.inc';
        }
?>

Probably should be

<?php
       
// Set the defaults. Not all modules implement the full api
       
if (!isset($info->path)) {
         
$info->path = drupal_get_path('module', $module);
        }
   
       
// Include the activity file.
       
if (file_exists('./'. $info->path .'/'. $module .'.activity.inc')) {
          require_once
'./'. $info->path .'/'. $module .'.activity.inc';
        }
?>

Comments

#1

Status:active» needs work

This may be partially working. It definitely closed the error mentioned in Activity2 and UR integration but still access api not working.

#2

subscribing

#3

Status:needs work» fixed

This def fixed a bug. Committed and fix
http://drupal.org/cvs?commit=298938

#4

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here