* remove custom-ajaxsethomepage page.
This commit is contained in:
@@ -20,19 +20,7 @@ class qa extends control
|
||||
public function index($locate = 'auto', $productID = 0)
|
||||
{
|
||||
$this->products = $this->loadModel('product')->getPairs('nocode');
|
||||
if($this->app->user->account == 'guest' or commonModel::isTutorialMode()) $this->config->qa->homepage = 'index';
|
||||
if(!isset($this->config->qa->homepage))
|
||||
{
|
||||
if($this->products and $this->app->viewType != 'mhtml') die($this->fetch('custom', 'ajaxSetHomepage', "module=qa"));
|
||||
|
||||
$this->config->qa->homepage = 'index';
|
||||
$this->fetch('custom', 'ajaxSetHomepage', "module=qa&page=index");
|
||||
}
|
||||
|
||||
if(empty($this->products)) die($this->locate($this->createLink('product', 'showErrorNone', "fromModule=qa")));
|
||||
|
||||
$homepage = $this->config->qa->homepage;
|
||||
if($homepage == 'browse' and $locate == 'auto') $locate = 'yes';
|
||||
if($locate == 'yes') $this->locate($this->createLink('bug', 'browse'));
|
||||
|
||||
if($this->app->viewType != 'mhtml') unset($this->lang->qa->menu->index);
|
||||
|
||||
Reference in New Issue
Block a user