Feature #22211 » getExtVersion.patch
t3lib/class.t3lib_extmgm.php (working copy) | ||
---|---|---|
self::$extensionKeyMap = NULL;
|
||
}
|
||
/**
|
||
* Retrieves the version of an extension
|
||
*
|
||
* @return string Version as String
|
||
*/
|
||
public static function getExtVersion($key) {
|
||
$version = false;
|
||
if (t3lib_extMgm::isLoaded($key)) {
|
||
include(t3lib_extMgm::extPath($key) . 'ext_emconf.php');
|
||
$version = $EM_CONF[$key]['version'];
|
||
}
|
||
return $version;
|
||
}
|
||