Changeset 12431
- Timestamp:
- 08/21/11 03:13:19 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.10/endpointman/includes/functions.inc
r12430 r12431 142 142 143 143 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__)); 157 145 return $stripped_path; 158 146 } modules/branches/2.9/endpointman/includes/functions.inc
r12430 r12431 142 142 143 143 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__)); 157 145 return $stripped_path; 158 146 }
