* change for showerrornone function.

This commit is contained in:
wangyidong
2016-05-16 17:35:40 +08:00
parent ee83dfc97a
commit 86f644cd6f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ class product extends control
/* Get all products, if no, goto the create page. */
$this->products = $this->product->getPairs('nocode');
if(empty($this->products) and strpos(',create,index,', $this->methodName) === false and $this->app->getViewType() != 'mhtml') $this->locate($this->createLink('product', 'create'));
if(empty($this->products) and strpos(',create,index,showerrornone,', $this->methodName) === false and $this->app->getViewType() != 'mhtml') $this->locate($this->createLink('product', 'create'));
$this->view->products = $this->products;
}
+1 -1
View File
@@ -28,7 +28,7 @@ class qa extends control
$this->fetch('custom', 'ajaxSetHomepage', "module=qa&page=index");
}
if(empty($this->products)) die($this->locate($this->createLink('product', 'showErrorNone', "fromModule=bug")));
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';