* adjust the checking update logic.

This commit is contained in:
wangchunsheng
2012-03-01 10:27:49 +00:00
parent 7748d796ba
commit a1faf1333f
3 changed files with 9 additions and 8 deletions
+6 -5
View File
@@ -59,15 +59,16 @@ class misc extends control
/**
* Check current version is latest or not.
*
* @param string $latestNote
* @param string $browser
* @access public
* @return void
*/
public function checkUpdate($latestNote = '', $browser = '')
public function checkUpdate()
{
$this->view->latestNote = urldecode(helper::safe64Decode($latestNote));
$this->view->browser = $browser;
$note = isset($_GET['note']) ? $_GET['note'] : '';
$browser = isset($_GET['browser']) ? $_GET['browser'] : '';
$this->view->note = urldecode(helper::safe64Decode($note));
$this->view->browser = $browser;
$this->display();
}
}