* admin: assign the zentaoData object instead of its properties into the index page.

This commit is contained in:
liugang
2023-05-15 16:40:11 +08:00
parent 895c9b1dae
commit 5a759419a7
2 changed files with 15 additions and 22 deletions
+4 -11
View File
@@ -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();
}