Skip to content

Commit

Permalink
ZF-11365: Zend_Version typo (r24034)
Browse files Browse the repository at this point in the history
Renamed protected member $lastestVersion -> $latestVersion
  • Loading branch information
b-durand committed May 14, 2011
1 parent 795c7f2 commit ec0606b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions library/Zend/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ final class Version
*
* @var string
*/
protected static $lastestVersion;
protected static $latestVersion;

/**
* Compare the specified Zend Framework version string $version
Expand All @@ -70,16 +70,16 @@ public static function compareVersion($version)
*/
public static function getLatest()
{
if (null === self::$lastestVersion) {
self::$lastestVersion = 'not available';
if (null === self::$latestVersion) {
self::$latestVersion = 'not available';

$handle = fopen('http://framework.zend.com/api/zf-version', 'r');
if (false !== $handle) {
self::$lastestVersion = stream_get_contents($handle);
self::$latestVersion = stream_get_contents($handle);
fclose($handle);
}
}

return self::$lastestVersion;
return self::$latestVersion;
}
}

0 comments on commit ec0606b

Please sign in to comment.