* add counts to the stats method.

This commit is contained in:
wangchunsheng
2011-06-29 15:36:35 +00:00
parent d2349df1c5
commit ca3ac01b56
2 changed files with 8 additions and 4 deletions

View File

@@ -243,10 +243,12 @@ class projectModel extends model
/**
* Get project stats.
*
* @param int $counts
*
* @access public
* @return array
*/
public function getProjectStats()
public function getProjectStats($counts)
{
$this->loadModel('report');
@@ -255,7 +257,7 @@ class projectModel extends model
$this->lang->project->charts->burn->graph->yAxisName = "";
$burns = array();
$projects = $this->getList('doing', $this->config->index->projectCounts);
$projects = $this->getList('doing', $counts);
foreach($projects as $key => $project)
{
if($this->checkPriv($project))