* change 3.0.stable to 3.0 when get version.

This commit is contained in:
wangchunsheng
2012-05-02 11:52:16 +00:00
parent 92c787bddc
commit 277d7a0db8
+1
View File
@@ -23,6 +23,7 @@ class settingModel extends model
public function getVersion()
{
$version = $this->getItem('system', 'global', 'version');
if($version == '3.0.stable') $version = '3.0'; // convert 3.0.stable to 3.0.
if($version) return $version;
return '0.3 beta';
}