Changeset 12431

Show
Ignore:
Timestamp:
08/21/11 03:13:19 (2 years ago)
Author:
tm1000
Message:

Ok. Let's try this again.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.10/endpointman/includes/functions.inc

    r12430 r12431  
    142142 
    143143    function get_modules_dir() { 
    144  
    145         $file_name = "endpointman/includes/functions.inc"; 
    146  
    147         $includes = get_included_files(); 
    148         foreach($includes as $key => $data) { 
    149             if(strripos($data,$file_name)) { 
    150                 $keyout = $key; 
    151                 break; 
    152             } 
    153         } 
    154  
    155         $stripped_path = str_replace("endpointman/includes/functions.inc", "", $includes[$keyout]); 
    156  
     144        $stripped_path = str_replace("endpointman/includes", "", dirname(__FILE__)); 
    157145        return $stripped_path; 
    158146    } 
  • modules/branches/2.9/endpointman/includes/functions.inc

    r12430 r12431  
    142142 
    143143    function get_modules_dir() { 
    144  
    145         $file_name = "endpointman/includes/functions.inc"; 
    146  
    147         $includes = get_included_files(); 
    148         foreach($includes as $key => $data) { 
    149             if(strripos($data,$file_name)) { 
    150                 $keyout = $key; 
    151                 break; 
    152             } 
    153         } 
    154  
    155         $stripped_path = str_replace("endpointman/includes/functions.inc", "", $includes[$keyout]); 
    156  
     144        $stripped_path = str_replace("endpointman/includes", "", dirname(__FILE__)); 
    157145        return $stripped_path; 
    158146    }