* remoed function saveProductState();

This commit is contained in:
womenyiqi_123@163.com
2011-07-03 03:50:36 +00:00
parent ed1a35f8f7
commit a7860fac5f

View File

@@ -236,22 +236,6 @@ class common extends control
return $changes;
}
/**
* Save the id of the last browse product to session.
*
* @access public
* @return string
*/
public static function saveProductState($productID, $defaultProductID)
{
global $app;
if($productID > 0) $app->session->set('product', (int)$productID);
if($productID == 0 and $app->cookie->lastProduct) $app->session->set('product', (int)$app->cookie->lastProduct);
if($productID == 0 and $app->session->product == '') $app->session->set('product', $defaultProductID);
return $app->session->product;
}
/**
* Get the full url of the system.
*