getExtVersion.patch

Administrator Admin, 2010-03-01 11:12

Download (610 Bytes)

View differences:

t3lib/class.t3lib_extmgm.php (working copy)
229 229
		self::$extensionKeyMap = NULL;
230 230
	}
231 231

  
232
	/**
233
	 * Retrieves the version of an extension
234
	 *
235
	 * @return	string Version as String
236
	 */
237
	public static function getExtVersion($key) {
238
		$version = false;
239
		if (t3lib_extMgm::isLoaded($key)) {
240
			include(t3lib_extMgm::extPath($key) . 'ext_emconf.php');
241
			$version = $EM_CONF[$key]['version'];
242
		}
243
		return $version;
244
	}
232 245

  
233 246

  
234 247