* set homepage for product/project/qa.

This commit is contained in:
wangyidong
2016-04-15 11:32:46 +08:00
parent 7e7e14b9db
commit c5dcca79bf
17 changed files with 128 additions and 15 deletions
+6 -1
View File
@@ -37,8 +37,13 @@ class project extends control
* @access public
* @return void
*/
public function index($locate = 'yes', $projectID = 0)
public function index($locate = 'auto', $projectID = 0)
{
if(!isset($this->config->project->homepage)) die($this->fetch('custom', 'ajaxSetHomepage', "module=project"));
$homepage = $this->config->project->homepage;
if($homepage == 'browse' and $locate == 'auto') $locate = 'yes';
if($locate == 'yes') $this->locate($this->createLink('project', 'task'));
if($this->projects) $this->commonAction($projectID);