Index: t3lib/class.t3lib_extmgm.php =================================================================== --- t3lib/class.t3lib_extmgm.php (revision 6712) +++ t3lib/class.t3lib_extmgm.php (working copy) @@ -230,6 +230,24 @@ } + /** + * Resolves an extension path, used for all the methods and functions that have EXT:myext/file_or_path/ + * + * @param $path string the string like EXT:myext/pi1/class.tx_myext_pi1.php + * @param $resolveFullPath string whether the absolute path (prepending PATH_site) should be shown or not + * @return string the string with the resolved path + */ + public static function resolvePath($path, $resolveFullPath = false) { + if (t3lib_div::isFirstPartOfStr('EXT:', $path)) { + list($extKey, $local) = explode('/', substr($path, 4), 2); + if (strcmp($extKey, '') && self::isLoaded($extKey) && strcmp($local, '')) { + $path = ($resolveFullPath ? self::extPath($extKey) : self::extRelPath($extKey)) . $local; + } + return $path; + } else { + return ($resolveFullPath ? PATH_site : '') . $path; + } + }