Commit 86ceee52 by Qiang Xue

Fixes #1017.

parent ffbd1063
...@@ -74,7 +74,7 @@ class DefaultController extends Controller ...@@ -74,7 +74,7 @@ class DefaultController extends Controller
protected function getManifest() protected function getManifest()
{ {
if ($this->_manifest === null) { if ($this->_manifest === null) {
$indexFile = $this->module->dataPath . '/index.php'; $indexFile = $this->module->dataPath . '/index.data';
if (is_file($indexFile)) { if (is_file($indexFile)) {
$this->_manifest = array_reverse(unserialize(file_get_contents($indexFile)), true); $this->_manifest = array_reverse(unserialize(file_get_contents($indexFile)), true);
} else { } else {
...@@ -88,7 +88,7 @@ class DefaultController extends Controller ...@@ -88,7 +88,7 @@ class DefaultController extends Controller
{ {
$manifest = $this->getManifest(); $manifest = $this->getManifest();
if (isset($manifest[$tag])) { if (isset($manifest[$tag])) {
$dataFile = $this->module->dataPath . "/$tag.php"; $dataFile = $this->module->dataPath . "/$tag.data";
$data = unserialize(file_get_contents($dataFile)); $data = unserialize(file_get_contents($dataFile));
foreach ($this->module->panels as $id => $panel) { foreach ($this->module->panels as $id => $panel) {
if (isset($data[$id])) { if (isset($data[$id])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment