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