|
|
@ -76,7 +76,7 @@ class DefaultController extends Controller |
|
|
|
if ($this->_manifest === null) { |
|
|
|
if ($this->_manifest === null) { |
|
|
|
$indexFile = $this->module->dataPath . '/index.json'; |
|
|
|
$indexFile = $this->module->dataPath . '/index.json'; |
|
|
|
if (is_file($indexFile)) { |
|
|
|
if (is_file($indexFile)) { |
|
|
|
$this->_manifest = array_reverse(json_decode(file_get_contents($indexFile), true), true); |
|
|
|
$this->_manifest = array_reverse(unserialize(file_get_contents($indexFile)), true); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$this->_manifest = array(); |
|
|
|
$this->_manifest = array(); |
|
|
|
} |
|
|
|
} |
|
|
@ -89,7 +89,7 @@ class DefaultController extends Controller |
|
|
|
$manifest = $this->getManifest(); |
|
|
|
$manifest = $this->getManifest(); |
|
|
|
if (isset($manifest[$tag])) { |
|
|
|
if (isset($manifest[$tag])) { |
|
|
|
$dataFile = $this->module->dataPath . "/$tag.json"; |
|
|
|
$dataFile = $this->module->dataPath . "/$tag.json"; |
|
|
|
$data = json_decode(file_get_contents($dataFile), true); |
|
|
|
$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])) { |
|
|
|
$panel->tag = $tag; |
|
|
|
$panel->tag = $tag; |
|
|
|