* admin: assign the zentaoData object instead of its properties into the index page.
This commit is contained in:
@@ -55,17 +55,10 @@ class admin extends control
|
||||
$langNotCN = common::checkNotCN();
|
||||
$dateUsed = $this->admin->genDateUsed();
|
||||
|
||||
$zentaoData = $this->admin->getZentaoData();
|
||||
$hasInternet = $zentaoData->hasData;
|
||||
|
||||
$this->view->title = $this->lang->admin->common;
|
||||
$this->view->plugins = $zentaoData->plugins;
|
||||
$this->view->patches = $zentaoData->patches;
|
||||
$this->view->dateUsed = $dateUsed;
|
||||
$this->view->hasInternet = $hasInternet;
|
||||
$this->view->dynamics = $zentaoData->news;
|
||||
$this->view->publicClass = $zentaoData->publicClass;
|
||||
$this->view->langNotCN = $langNotCN;
|
||||
$this->view->title = $this->lang->admin->common;
|
||||
$this->view->zentaoData = $this->admin->getZentaoData();
|
||||
$this->view->dateUsed = $dateUsed;
|
||||
$this->view->langNotCN = $langNotCN;
|
||||
$this->display();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user