* remoed function saveProductState();
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user